Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Commit

Permalink
move to OSG 3.5 and removal of manual python36
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilija Vukotic authored and BenGalewsky committed Jan 27, 2021
1 parent 65a70c2 commit ff23f46
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 29 deletions.
23 changes: 4 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rucio/rucio-clients:release-1.23.7.post1
FROM rucio/rucio-clients:latest

LABEL maintainer Ilija Vukotic <[email protected]>

Expand All @@ -10,42 +10,27 @@ USER root
RUN mkdir -p /etc/grid-security/certificates /etc/grid-security/vomsdir

RUN yum -y update
RUN yum localinstall https://repo.opensciencegrid.org/osg/3.4/osg-3.4-el7-release-latest.rpm -y

RUN yum install -y https://repo.opensciencegrid.org/osg/3.5/osg-3.5-el7-release-latest.rpm

RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm; \
curl -s -o /etc/pki/rpm-gpg/RPM-GPG-KEY-wlcg http://linuxsoft.cern.ch/wlcg/RPM-GPG-KEY-wlcg; \
curl -s -o /etc/yum.repos.d/wlcg-centos7.repo http://linuxsoft.cern.ch/wlcg/wlcg-centos7.repo;

RUN yum install osg-ca-certs voms voms-clients wlcg-voms-atlas fetch-crl -y

# We need python3 which is not part of the Rucio docker image
RUN yum install -y centos-release-scl && \
yum install -y rh-python36

# Okay, change our shell to specifically use our software collections.
# (default was SHELL [ "/bin/sh", "-c" ])
# https://docs.docker.com/engine/reference/builder/#shell
#
# See also `scl` man page for enabling multiple packages if desired:
# https://linux.die.net/man/1/scl
SHELL [ "/usr/bin/scl", "enable", "rh-python36" ]

COPY requirements.txt requirements.txt

RUN pip install -r requirements.txt


COPY scl_enable /usr/bin/scl_enable

RUN python3 -m pip install -r requirements.txt

COPY . .

# build
RUN echo "Timestamp:" `date --utc` | tee /image-build-info.txt

ENV BASH_ENV="/usr/bin/scl_enable" \
ENV="/usr/bin/scl_enable" \
PROMPT_COMMAND=". /usr/bin/scl_enable"

ENV X509_USER_PROXY /etc/grid-security/x509up

3 changes: 0 additions & 3 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ echo "Enable shell completion on the rucio commands"
eval "$(register-python-argcomplete rucio)"
eval "$(register-python-argcomplete rucio-admin)"

# Added by Ben Galewsky for python3 migration
. /opt/rh/rh-python36/enable

export PYTHONPATH=/usr/src/app/did_finder
3 changes: 0 additions & 3 deletions configure_python3.sh

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rucio-clients==1.21.12
rucio-clients>=1.21.12
pika==1.1.0

3 changes: 0 additions & 3 deletions scl_enable

This file was deleted.

0 comments on commit ff23f46

Please sign in to comment.