Skip to content

Commit

Permalink
move base layer to alma9 (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
garciagenrique authored Aug 13, 2024
1 parent 662e942 commit 92254a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 22 deletions.
27 changes: 15 additions & 12 deletions containers/base-ops/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
ARG BASEIMAGE=rucio/rucio-server
ARG BASETAG=release-1.30.0
ARG BASETAG=release-34.6.0
ARG BUILD_DATE

FROM ${BASEIMAGE}:${BASETAG}
LABEL maintainer="VRE Team @ CERN 22/23 - E. Garcia, E. Gazzarrini, D. Gosein"
LABEL maintainer="VRE Team @ CERN 23/24 - E. Garcia, G. Guerrieri"
LABEL org.opencontainers.image.source https://github.com/vre-hub/vre
LABEL org.label-schema.build-date=${BUILD_DATE}

USER root

# Install epel-relaseas
RUN dnf install -y epel-release

# cleanup yum cache
RUN yum upgrade -y \
&& yum clean all \
&& rm -rf /var/cache/yum
RUN dnf upgrade -y \
&& dnf clean all \
&& rm -rf /var/cache/dnf

# install useful tools
RUN yum -y install git htop wget voms-clients-cpp
RUN pip install --upgrade pip
RUN dnf -y install git htop wget voms-clients-cpp
RUN python3 -m pip install --upgrade pip

# EGI trust anchors
RUN curl -Lo /etc/yum.repos.d/egi-trustanchors.repo https://repository.egi.eu/sw/production/cas/1/current/repo-files/egi-trustanchors.repo \
&& yum update -y
&& dnf update -y

RUN yum -y install gfal2* python3-gfal2 xrootd-client voms-clients-java
RUN yum -y install ca-certificates ca-policy-egi-core
RUN dnf -y install gfal2* python3-gfal2 xrootd-client voms-clients-java
RUN dnf -y install ca-certificates ca-policy-egi-core

# Install CERN CA certs from CERN maintained mirrors
# This will add a `CERN-bundle.pem` file (among others) into `/etc/pki/tls/certs/`
COPY ./linuxsupport7s-stable.repo /etc/yum.repos.d/
RUN yum install -y CERN-CA-certs
RUN dnf -y --repofrompath='tmpcern,https://linuxsoft.cern.ch/cern/alma/$releasever/CERN/$basearch/' upgrade almalinux-release --nogpgcheck
RUN dnf install -y CERN-CA-certs

# ESCAPE VOMS setup
RUN mkdir -p /etc/vomses \
Expand Down
10 changes: 0 additions & 10 deletions containers/base-ops/linuxsupport7s-stable.repo

This file was deleted.

0 comments on commit 92254a9

Please sign in to comment.