-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (25 loc) · 1.3 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM opensciencegrid/software-base:23-el9-release
RUN yum install -y epel-release.noarch && \
yum clean all && \
rm -rf /var/cache/yum
RUN yum upgrade -y && \
yum clean all && \
rm -rf /var/cache/yum
RUN yum install -y python3-pip
RUN yum install -y https://repo.opensciencegrid.org/osg/3.6/osg-3.6-el8-release-latest.rpm
RUN yum install -y https://repo.opensciencegrid.org/osg/23-main/el9/release/x86_64/vo-client-136-1.osg23.el9.noarch.rpm
RUN yum install osg-ca-certs voms voms-clients fetch-crl -y
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.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-centos8.repo http://linuxsoft.cern.ch/wlcg/wlcg-centos8.repo;
RUN yum install -y wlcg-voms-atlas wlcg-voms-cms
# Upgrade pip & setuptools and install Rucio
RUN python3 -m pip install --no-cache-dir --upgrade setuptools && \
python3 -m pip install --no-cache-dir --pre rucio-clients && \
python3 -m pip install --no-cache-dir jinja2 j2cli pyyaml argcomplete
# enable bash completion for the rucio clients
ADD init_rucio.sh /etc/profile.d/rucio_init.sh
ADD rucio.cfg /opt/rucio/etc/rucio.cfg
ADD gai.conf /etc/gai.conf
ENV PATH $PATH:/opt/rucio/bin
CMD ["/bin/bash"]