-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #764 from d-ylee/718-enhancement-clean-up-the-clie…
…nt-image Clean up rucio_client Image and experiment with alma9-minimal client
- Loading branch information
Showing
5 changed files
with
110 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
FROM almalinux:9-minimal | ||
|
||
ARG RUCIO_VERSION | ||
|
||
RUN microdnf upgrade -y && \ | ||
microdnf clean all && \ | ||
rm -rf /var/cache/dnf | ||
|
||
RUN microdnf install -y epel-release.noarch && \ | ||
microdnf clean all && \ | ||
rm -rf /var/cache/dnf | ||
|
||
# FIXME: What is all this? We can't need it all | ||
RUN microdnf install -y python3 python3-pip \ | ||
libaio gcc python3-devel \ | ||
wget unzip \ | ||
openssl-devel bind-utils nano git && \ | ||
microdnf clean all && \ | ||
rm -rf /var/cache/dnf | ||
|
||
WORKDIR /tmp | ||
|
||
# Get various repos for yum setup | ||
RUN curl -o /etc/yum.repos.d/ca.repo https://raw.githubusercontent.com/rucio/rucio/1.20.3/etc/docker/dev/ca.repo | ||
|
||
# Install WLCG repo for CMS VOMS | ||
RUN rpm -i http://linuxsoft.cern.ch/wlcg/el9/x86_64/wlcg-repo-1.0.0-1.el9.noarch.rpm | ||
|
||
RUN microdnf --setopt=wlcg.skip_if_unavailable=true install -y which krb5-devel gridsite \ | ||
globus-proxy-utils voms-clients-cpp wlcg-voms-cms \ | ||
gfal2-util gfal2-all gfal2-plugin-xrootd python3-gfal2 && \ | ||
microdnf clean all && \ | ||
rm -rf /var/cache/dnf | ||
|
||
# Install DAS client to pull info from PhEDEx/DBS | ||
RUN curl -k -o /bin/dasgoclient https://www.lns.cornell.edu/~vk/Work/dasgoclient && chmod +x /bin/dasgoclient | ||
RUN curl -o /etc/ca.crt https://cafiles.cern.ch/cafiles/certificates/CERN%20Root%20Certification%20Authority%202.crt | ||
|
||
WORKDIR /root | ||
RUN git clone https://github.com/rucio/rucio.git | ||
|
||
COPY docker/rucio_client/scripts /scripts | ||
|
||
ADD docker/rucio_client/rucio-int.cfg /opt/rucio-int/etc/rucio.cfg | ||
ADD docker/rucio_client/rucio-prod.cfg /opt/rucio-prod/etc/rucio.cfg | ||
|
||
# Install Rucio and other stuff | ||
RUN pip3 install --upgrade pip setuptools && \ | ||
pip3 -v install --no-cache-dir rucio-clients==$RUCIO_VERSION && \ | ||
pip3 -v install --no-cache-dir -r /scripts/requirements.txt | ||
|
||
# Pull some useful stuff out of git | ||
WORKDIR /root | ||
RUN git clone https://github.com/dmwm/CMSRucio.git | ||
|
||
RUN mkdir -p /etc/grid-security ; ln -s /cvmfs/grid.cern.ch/etc/grid-security/certificates /etc/grid-security/ | ||
|
||
# Overwrite what's there for testing | ||
# COPY scripts /root/CMSRucio/docker/CMSRucioClient/scripts | ||
|
||
# Our schema | ||
ADD https://raw.githubusercontent.com/ericvaandering/rucio/cms_nano12/lib/rucio/common/schema/cms.py /usr/lib/python3.9/site-packages/rucio/common/schema/cms.py | ||
RUN python3 -m compileall /usr/lib/python3.9/site-packages/rucio/common/schema | ||
|
||
ENV X509_USER_PROXY=/tmp/x509up | ||
ENTRYPOINT ["/bin/bash", "-c", "sleep infinity"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# for setOneRucioFromGitlab, setRucioFromGitlab, cmslinks.py | ||
python-gitlab~=4.4.0 | ||
|
||
# for syncaccount_oidc.py | ||
liboidcagent~=0.6.0 |