Skip to content

Commit

Permalink
Merge pull request #601 from ericvaandering/alma9_rucio
Browse files Browse the repository at this point in the history
Update CMS Rucio images for Alma9/Rucio 32
  • Loading branch information
ericvaandering authored Sep 27, 2023
2 parents ba324ae + bdd2846 commit 8e0c3b9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 31 deletions.
4 changes: 2 additions & 2 deletions build-rucio-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -e

export RUCIO_VERSION=1.31.6
export CMS_VERSION=${RUCIO_VERSION}.cms3
export RUCIO_VERSION=32.3.1
export CMS_VERSION=${RUCIO_VERSION}.cms1

export HARBOR=registry.cern.ch/cmsrucio

Expand Down
8 changes: 2 additions & 6 deletions docker/rucio-daemons/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN /tmp/install_mail_templates.sh
RUN python3 -m pip install --no-cache-dir globus-sdk pyyaml
ADD docker/rucio-daemons/globus-config.yml.j2 /tmp

RUN mkdir -p /etc/grid-security && ln -s /cvmfs/grid.cern.ch/etc/grid-security/certificates /etc/grid-security/
RUN rmdir /etc/grid-security/certificates && ln -s /cvmfs/grid.cern.ch/etc/grid-security/certificates /etc/grid-security/certificates

ADD docker/rucio-daemons/cms-entrypoint.sh /

Expand All @@ -39,11 +39,7 @@ ADD docker/rucio-daemons/cms-entrypoint.sh /
# Cannot make patch directory unless there are patches
RUN mkdir -p /patch

# Eric's patch for FNAL URL problem
# Merged for Rucio 32
ADD https://patch-diff.githubusercontent.com/raw/rucio/rucio/pull/6097.patch /patch/6097.patch

# Patch for auto approve plugin rucio/pull/6215
ADD https://raw.githubusercontent.com/dynamic-entropy/rucio/b55a1d62e39565ac0a220b64f42530db96cb468f/0001-Policies-Adding-plugin-hook-for-auto-approval-flow.patch /patch/6203.patch
ADD https://github.com/rucio/rucio/pull/6215.patch /patch/6215.patch

ENTRYPOINT ["/cms-entrypoint.sh"]
4 changes: 2 additions & 2 deletions docker/rucio-probes/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ ARG RUCIO_VERSION
FROM rucio/probes:$RUCIO_VERSION

# For now CMS versions use python3 explicitly. Can be removed when main container goes to python3
RUN ln -s /usr/bin/python3 /usr/local/bin/python
#RUN ln -s /usr/bin/python3 /usr/local/bin/python

# Add CMS policy package
RUN mkdir -p /opt/rucio/policy/CMSRucioPolicy
COPY src/policy/CMSRucioPolicy /opt/rucio/policy/CMSRucioPolicy
# Make it search the policy directory. Needs a change for python upgrades
RUN echo "/opt/rucio/policy" > /usr/local/lib/python3.6/site-packages/policy.pth
RUN echo "/opt/rucio/policy" > /usr/local/lib/python3.9/site-packages/policy.pth

# Temporary additions

Expand Down
13 changes: 1 addition & 12 deletions docker/rucio-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ ARG RUCIO_VERSION

FROM rucio/rucio-server:release-$RUCIO_VERSION

RUN yum update -y && \
yum clean all && \
rm -rf /var/cache/yum

# Add CMS policy package
RUN mkdir -p /opt/rucio/policy/CMSRucioPolicy
COPY src/policy/CMSRucioPolicy/ /opt/rucio/policy/CMSRucioPolicy/
Expand All @@ -27,17 +23,10 @@ ADD docker/rucio-server/cms-entrypoint.sh /
ADD docker/rucio-server/install_mail_templates.sh /tmp/
RUN /tmp/install_mail_templates.sh

# Might get recreated if apache was upgraded
RUN rm -f /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/userdir.conf /etc/httpd/conf.d/ssl.conf

# Cannot make patch directory unless there are patches
RUN mkdir -p /patch

# Eric's patch for FNAL URL problem
# Merged for Rucio 32
ADD https://patch-diff.githubusercontent.com/raw/rucio/rucio/pull/6097.patch /patch/6097.patch

# Patch for auto approve plugin rucio/pull/6215
ADD https://raw.githubusercontent.com/dynamic-entropy/rucio/b55a1d62e39565ac0a220b64f42530db96cb468f/0001-Policies-Adding-plugin-hook-for-auto-approval-flow.patch /patch/6203.patch
ADD https://github.com/rucio/rucio/pull/6215.patch /patch/6215.patch

ENTRYPOINT ["/cms-entrypoint.sh"]
10 changes: 1 addition & 9 deletions docker/rucio-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
ARG RUCIO_VERSION
FROM rucio/rucio-ui:release-$RUCIO_VERSION

RUN yum update -y \
&& yum clean all \
&& rm -rf /var/cache/yum

# Add CMS policy package
RUN mkdir -p /opt/rucio/policy/CMSRucioPolicy
COPY src/policy/CMSRucioPolicy /opt/rucio/policy/CMSRucioPolicy
Expand All @@ -28,12 +24,8 @@ ENV RUCIO_CA_PATH="/cvmfs/grid.cern.ch/etc/grid-security/certificates"
# Cannot make patch directory unless there are patches
RUN mkdir -p /patch

# Eric's patch for FNAL URL problem
# Merged for Rucio 32
ADD https://patch-diff.githubusercontent.com/raw/rucio/rucio/pull/6097.patch /patch/6097.patch

# Patch for auto approve plugin rucio/pull/6215
ADD https://raw.githubusercontent.com/dynamic-entropy/rucio/b55a1d62e39565ac0a220b64f42530db96cb468f/0001-Policies-Adding-plugin-hook-for-auto-approval-flow.patch /patch/6203.patch
ADD https://github.com/rucio/rucio/pull/6215.patch /patch/6215.patch

ADD docker/rucio-ui/cms-entrypoint.sh /
ENTRYPOINT ["/cms-entrypoint.sh"]

0 comments on commit 8e0c3b9

Please sign in to comment.