Skip to content

Commit

Permalink
Small changes to rucio-client dockerfile (#268)
Browse files Browse the repository at this point in the history
* Add BASEIMAGE argument in rucio-client Dockerfile

* Merge some RUN commands in rucio-client Dockerfile

* Install git and htop tools in rucio-client image

---------

Co-authored-by: Andres Tanasijczuk ([email protected]) <[email protected]>
  • Loading branch information
AndresTanasijczuk and Andres Tanasijczuk ([email protected]) authored Jan 15, 2024
1 parent 3de9699 commit da3c6e1
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions containers/rucio-client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,46 +1,51 @@
# VRE rucio-client image is the only which BASE is not the vre-base-ops image

ARG BASEIMAGE=rucio/rucio-clients
ARG BASETAG=release-1.30.0
ARG BUILD_DATE

#FROM ghcr.io/vre-hub/vre-base-ops:${TAG}
FROM rucio/rucio-clients:${BASETAG}
FROM ${BASEIMAGE}:${BASETAG}
LABEL maintainer="VRE Team @ CERN 22/23 - E. Garcia, E. Gazzarrini, D. Gosein"
LABEL org.opencontainers.image.source https://github.com/vre-hub/vre
LABEL org.label-schema.build-date=${BUILD_DATE}

USER root

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

# install useful tools
RUN yum -y install git htop wget
RUN 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
&& yum update -y

RUN yum clean metadata
RUN yum -y install wget ca-certificates ca-policy-egi-core

# CERN cert
RUN yum -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

# ESCAPE VOMS setup
RUN mkdir -p /etc/vomses \
&& wget https://indigo-iam.github.io/escape-docs/voms-config/voms-escape.cloud.cnaf.infn.it.vomses -O /etc/vomses/voms-escape.cloud.cnaf.infn.it.vomses
RUN mkdir -p /etc/grid-security/vomsdir/escape \
&& wget https://indigo-iam.github.io/escape-docs/voms-config/voms-escape.cloud.cnaf.infn.it.vomses -O /etc/vomses/voms-escape.cloud.cnaf.infn.it.vomses \
&& mkdir -p /etc/grid-security/vomsdir/escape \
&& wget https://indigo-iam.github.io/escape-docs/voms-config/voms-escape.cloud.cnaf.infn.it.lsc -O /etc/grid-security/vomsdir/escape/voms-escape.cloud.cnaf.infn.it.lsc

# ESCAPE Rucio setup
ADD --chown=user:user rucio.cfg.escape.j2 /opt/user/rucio.cfg.j2

# install reana-client
ENV LC_ALL=en_US.UTF-8
RUN pip install --upgrade pip
RUN pip install reana-client==0.9.2

USER user
WORKDIR /home/user

ENTRYPOINT ["/bin/bash"]
# ESCAPE Rucio client configuration
ADD --chown=user:user rucio.cfg.escape.j2 /opt/user/rucio.cfg.j2

ENTRYPOINT ["/bin/bash"]

0 comments on commit da3c6e1

Please sign in to comment.