Skip to content

Commit

Permalink
Merge pull request #817 from dynamic-entropy/sync_int_rses
Browse files Browse the repository at this point in the history
Sync int rses
  • Loading branch information
ericvaandering authored Jun 28, 2024
2 parents 8fe8ef2 + 1a62e37 commit b1adefe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rucio-release-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Build the Docker Image
run: |
buildah build --build-arg RUCIO_VERSION=${{ env.rucio_version }} --file docker/${{ matrix.image }}/Dockerfile --tag registry.cern.ch/${{ vars.HARBOR_REPOSITORY }}/${{ matrix.image }}:${{ env.tag }} .
buildah build --build-arg RUCIO_VERSION=${{ env.rucio_version }} --build-arg CMSRUCIO_GITTAG=${{ env.tag }} --file docker/${{ matrix.image }}/Dockerfile --tag registry.cern.ch/${{ vars.HARBOR_REPOSITORY }}/${{ matrix.image }}:${{ env.tag }} .
- name: Push the Docker Image
run: |
Expand Down
2 changes: 2 additions & 0 deletions docker/rucio_client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM almalinux:9

ARG RUCIO_VERSION
ARG CMSRUCIO_GITTAG

RUN dnf upgrade -y && \
dnf clean all && \
Expand Down Expand Up @@ -58,6 +59,7 @@ RUN git clone https://github.com/rucio/rucio.git
# Pull some useful stuff out of git
WORKDIR /root
RUN git clone https://github.com/dmwm/CMSRucio.git
RUN cd CMSRucio && git checkout $CMSRUCIO_GITTAG

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

Expand Down
7 changes: 5 additions & 2 deletions docker/rucio_client/scripts/CMSRSE.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
'delete': 1},
'lan': {'read': 0, 'write': 0, 'delete': 0}},
'int-real': {
'wan': {'read': 1, 'write': 0, 'third_party_copy_write': 1, 'third_party_copy_read': 1,
'delete': 0},
'wan': {'read': 1, 'write': 1, 'third_party_copy_write': 1, 'third_party_copy_read': 1,
'delete': 1},
'lan': {'read': 0, 'write': 0, 'delete': 0}},
'test': {
'wan': {'read': 1, 'write': 1, 'third_party_copy_write': 1, 'third_party_copy_read': 1,
Expand Down Expand Up @@ -356,6 +356,9 @@ def _get_protocol(self, proto_json, protos_json):
if self.cms_type == "test":
prefix = prefix + "store/test/rucio/"

elif self.cms_type == "int-real":
prefix = prefix + "store/test/rucio/int/"

elif self.cms_type == "temp":
prefix = prefix + "store/temp/"

Expand Down
3 changes: 2 additions & 1 deletion docker/rucio_client/scripts/k8s_sync_sites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ voms-proxy-init -voms cms -cert /tmp/cert.pem -key /tmp/key.pem
voms-proxy-info

cd /root/CMSRucio
git pull origin master
export RUCIO_ACCOUNT=root

echo Using config file in $RUCIO_HOME
Expand All @@ -23,6 +22,8 @@ set -x
cd docker/rucio_client/scripts/
if [ "$RUCIO_HOME" = "/opt/rucio-int" ]
then
echo "Syncing Integration sites from JSON"
./setRucioFromGitlab --type int-real
exit 0
fi

Expand Down

0 comments on commit b1adefe

Please sign in to comment.