Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 42cb8d4c authored by MUSSET Paul's avatar MUSSET Paul
Browse files

only built xrootd5 images

parent 966e347e
Pipeline #102014 passed with stage
in 6 minutes and 16 seconds
...@@ -12,29 +12,17 @@ stages: ...@@ -12,29 +12,17 @@ stages:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context "$CI_PROJECT_DIR/$DIRECTORY" --dockerfile "$CI_PROJECT_DIR/$DIRECTORY/Dockerfile" --destination "$CI_REGISTRY_IMAGE/$IMAGE_NAME" - /kaniko/executor --context "$CI_PROJECT_DIR/$DIRECTORY" --dockerfile "$CI_PROJECT_DIR/$DIRECTORY/Dockerfile" --destination "$CI_REGISTRY_IMAGE/$IMAGE_NAME"
build_xcache_stable: build_xcache:
extends: extends:
- .build - .build
stage: build stage: build
variables: variables:
DIRECTORY: containers/images/xcache/stable DIRECTORY: containers/images/xcache/
rules: rules:
- if: '$CI_COMMIT_BRANCH != "master"' - if: '$CI_COMMIT_BRANCH != "master"'
changes: changes:
- containers/images/xcache/stable/Dockerfile - containers/images/xcache/Dockerfile
- .build
stage: build
DIRECTORY: containers/images/xcache/testing
IMAGE_NAME: xcache_testing:${CI_COMMIT_REF_SLUG}
- if: '$CI_COMMIT_BRANCH != "master"'
- containers/images/xcache/stable/Dockerfile
build_xcache_master: build_xcache_master:
extends: extends:
# XCache image
FROM centos:7
ARG xrootdversion=4.12.5
COPY xrootd-stable-slc7.repo /etc/yum.repos.d/xrootd-stable-slc7.repo
RUN yum install --nogpg -y epel-release\
&& yum install --nogpg -y xrootd-server-${xrootdversion}
# Have the predefined uid/gid for xrootd to enable easy access to volumes
RUN xrootd_uid=$(id -u xrootd)\
&& xrootd_gid=$(id -g xrootd)\
&& groupmod -g 9999 xrootd\
&& usermod -u 9998 xrootd\
&& find / -group ${xrootd_gid} -user ${xrootd_gid} -type d -execdir chown xrootd:xrootd {} \;
# Config directory
RUN mkdir -p /etc/xrootd/\
&& chown xrootd:xrootd /etc/xrootd
# Directory keeping the namespace
RUN mkdir -p /mnt/xcache/ns/\
&& chown xrootd:xrootd /mnt/xcache/ns/
# Directory keeping the metadata
RUN mkdir -p /mnt/xcache/metadata/\
&& chown xrootd:xrootd /mnt/xcache/metadata/
# Directory to mount the data disks. need to have same uid+gid on host and container
RUN mkdir -p /mnt/xcache/storage\
&& chown xrootd:xrootd /mnt/xcache/storage/
# For now checking crl is disabled in xcache config file
# Might have to be later to be put in a volume. with a container spawning every n hours doing the fetch crl
# install ca certificates
ADD /etc/yum.repos.d/EGI-trustanchors.repo
RUN yum install --nogpg -y ca-policy-lcg
# Certificates directory
RUN mkdir /etc/grid-security/xrd/\
&& chown xrootd:xrootd /etc/grid-security/xrd/
# Steps for certificates authentication
# Get VOMS Files
ADD /etc/vomses/
ADD /etc/grid-security/vomsdir/escape/
RUN chmod 644 /etc/vomses/ /etc/grid-security/vomsdir/escape/
# Install the VO info extractor
RUN yum install --nogpg -y xrootd-voms-${xrootdversion}
ENV X509_USER_PROXY=/tmp/proxy-certificate/certificate
RUN mkdir -p /tmp/proxy-certificate\
&& chown xrootd:xrootd /tmp/proxy-certificate
# HTTP xroot client library
RUN yum install --nogpg -y xrdcl-http-${xrootdversion}\
&& rm -rf /etc/xrootd
# problem with xrdcl-http not looking /etc/grid-security
RUN cp /etc/grid-security/certificates/*.pem /etc/pki/ca-trust/source/anchors/\
&& update-ca-trust extract
RUN yum clean all
USER xrootd:xrootd
CMD ["xrootd","-d","-c","/etc/xrootd/xcache-config.cfg","-n","xcache"]
name=XRootD Stable repository
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment