Skip to content

Commit

Permalink
triggers new image rucio noise
Browse files Browse the repository at this point in the history
  • Loading branch information
garciagenrique committed Nov 20, 2023
1 parent a1664f5 commit 5907732
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
4 changes: 4 additions & 0 deletions containers/rucio-client/rucio.cfg.escape.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ schema = {{ RUCIO_CFG_POLICY_SCHEMA | default('escape') }}
lfn2pfn_algorithm_default = {{ RUCIO_CFG_POLICY_LFN2PFN_ALGORITHM_DEFAULT | default('hash') }}
support = {{ RUCIO_CFG_POLICY_SUPPORT | default('https://github.com/rucio/rucio/issues/') }}
support_rucio = {{ RUCIO_CFG_POLICY_SUPPORT_RUCIO | default('https://github.com/rucio/rucio/issues/') }}

[credentials]
gcs = {{ RUCIO_CFG_CREDENTIALS_GCS | default('/opt/rucio/etc/rse-accounts.cfg')}}
signature_lifetime = {{ RUCIO_CFG_SIGNATURE_LIFETIME | default('3600') }}
6 changes: 5 additions & 1 deletion containers/rucio-noise/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ RUN yum install -y gcc pip python-devel \
&& pip install --upgrade pip
RUN pip install reana-client

ADD --chown=user:user rucio.cfg.escape.j2 /opt/user/rucio.cfg.j2
# ADD --chown=user:user rucio.cfg.escape.j2 /opt/user/rucio.cfg.j2

# Overwritting the path in rucio init script
ADD init_rucio.sh /etc/profile.d/init_rucio.sh

# To here testing the reana-client base image

WORKDIR /home
Expand Down
21 changes: 21 additions & 0 deletions containers/rucio-noise/init_rucio.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
# Authors:
# - Vincent Garonne, <[email protected]>, 2018

## Customised version to make v32.0.0 run on the VRE - DEV cluster

shopt -s checkwinsize

if [ ! -f /opt/rucio/etc/rucio.cfg ]; then
echo "File rucio.cfg not found. It will generate one."
mkdir -p /opt/rucio/etc/
# python3 /usr/local/rucio_client/merge_rucio_configs.py \
# -s /opt/user/rucio.default.cfg \
python3 /usr/local/rucio/tools/merge_rucio_configs.py \
--use-env \
-d /opt/rucio/etc/rucio.cfg
fi

echo "Enable shell completion on the rucio commands"
eval "$(register-python-argcomplete rucio)"
eval "$(register-python-argcomplete rucio-admin)"
2 changes: 1 addition & 1 deletion containers/rucio-noise/rses.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
DEV-CERN-EOS
DEV-CESNET-S3
DEV-CESNET-S3
3 changes: 1 addition & 2 deletions containers/rucio-noise/rucio.cfg.escape.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ support = {{ RUCIO_CFG_POLICY_SUPPORT | default('https://github.com/rucio/rucio/
support_rucio = {{ RUCIO_CFG_POLICY_SUPPORT_RUCIO | default('https://github.com/rucio/rucio/issues/') }}

[credentials]
gcs = {{ RUCIO_CFG_CREDENTIALS_GCS | default('/opt/rucio/etc/rse-accounts.cfg')}}
signature_lifetime = {{ RUCIO_CFG_SIGNATURE_LIFETIME | default('3600') }}
gcs = {{ RUCIO_CFG_CREDENTIALS_GCS | default('/opt/rucio/etc/rse-accounts.cfg')}}

0 comments on commit 5907732

Please sign in to comment.