Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update rucio config #6

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
ARG BASETAG=release-1.29.1
ARG BASETAG=release-1.30.0
FROM rucio/rucio-clients:$BASETAG

USER root

# CERN certificate
COPY --chown=user:user files/CERN-bundle.pem /etc/pki/tls/certs/CERN-bundle.pem
COPY ./linuxsupport7s-stable.repo /etc/yum.repos.d/

# Add the rucio configuration template
COPY --chown=user:user files/rucio.cfg.j2 /opt/user/rucio.cfg.j2

# EGI trust anchors
RUN curl -Lo /etc/yum.repos.d/EGI-trustanchors.repo https://repository.egi.eu/sw/production/cas/1/current/repo-files/EGI-trustanchors.repo && \
yum -y install ca-certificates ca-policy-egi-core && \

RUN yum -y install ca-certificates ca-policy-egi-core && \
yum install -y CERN-CA-certs && \
yum clean all && \
rm -rf /var/cache/yum

Expand Down
2 changes: 1 addition & 1 deletion files/rucio.cfg.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[client]
rucio_host = {{ RUCIO_CFG_RUCIO_HOST | default('') }}
auth_host = {{ RUCIO_CFG_AUTH_HOST | default('') }}
ca_cert = {{ RUCIO_CFG_CA_CERT | default('/rucio_cache/CERN-bundle.pem') }}
ca_cert = {{ RUCIO_CFG_CA_CERT | default('/etc/pki/tls/certs/CERN-bundle.pem') }}
auth_type = {{ RUCIO_CFG_AUTH_TYPE | default('x509_proxy') }}
username = {{ RUCIO_CFG_USERNAME | default('') }}
password = {{ RUCIO_CFG_PASSWORD | default('') }}
Expand Down
9 changes: 9 additions & 0 deletions linuxsupport7s-stable.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Example modified for cc7 taken from https://gitlab.cern.ch/linuxsupport/rpmci/-/blob/master/kojicli/linuxsupport8s-stable.repo
[linuxsupport7s-stable]
name=linuxsupport [stable]
baseurl=https://linuxsoft.cern.ch/cern/centos/7/cern/$basearch
enabled=1
gpgcheck=False
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-koji file:///etc/pki/rpm-gpg/RPM-GPG-KEY-kojiv2
priority=1
protect=1