Commit 8dfae747 authored by MUSSET Paul's avatar MUSSET Paul
Browse files

xrootd-version as argument

parent 0972c66c
Pipeline #101241 failed with stage
in 3 minutes and 32 seconds
# Passing the creation of xrootd-scitoken rpm as the depencies to are annoting to get
## Build sci-token rpm for token
#FROM centos:7 AS sci-token-build
#
#COPY xrootd-stable-slc7.repo /etc/yum.repos.d/xrootd-stable-slc7.repo
#
#RUN yum install --nogpg -y epel-release\
# && yum install --nogpg -y\
# cmake\
# gcc-c++\
# git\
# make\
# rpm-build\
# scitokens-cpp-devel\
# xrootd-server-devel-4.12.4\
# && git clone https://github.com/scitokens/xrootd-scitokens\
# && mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
#
#WORKDIR xrootd-scitokens
#
#ENV CXXFLAGS=-Wno-error CFLAGS=-Wno-error
#
#RUN git archive v1.2.2 --prefix=xrootd-scitokens-1.2.2/ | gzip -7 > ~/rpmbuild/SOURCES/xrootd-scitokens-1.2.2.tar.gz\
# && rpmbuild -ba rpm/xrootd-scitokens.spec
# XCache image
FROM centos:7
ARG xrootd-version=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-4.12.5
&& yum install --nogpg -y xrootd-server-${xrootd-version}
# Have the predefined uid/gid for xrootd to enable easy access to volumes
RUN xrootd_uid=$(id -u xrootd)\
......@@ -72,21 +47,15 @@ ADD https://indigo-iam.github.io/escape-docs/voms-config/voms-escape.cloud.cnaf.
RUN chmod 644 /etc/vomses/voms-escape.cloud.cnaf.infn.it.vomses /etc/grid-security/vomsdir/escape/voms-escape.cloud.cnaf.infn.it.lsc
# Install the VO info extractor
RUN yum install --nogpg -y xrootd-voms-4.12.5
RUN yum install --nogpg -y xrootd-voms-${xrootd-version}
ENV X509_USER_PROXY=/tmp/proxy-certificate/certificate
RUN mkdir -p /tmp/proxy-certificate\
&& chown xrootd:xrootd /tmp/proxy-certificate
# Token authorization disabled for now as too complicated to compile
## Steps for Token authorization
## Scitokens library
#COPY --from=sci-token-build /root/rpmbuild/RPMS/x86_64/xrootd-scitokens-1.2.2-1.el7.x86_64.rpm .
#RUN yum install --nogpg -y xrootd-scitokens-*.el7.x86_64.rpm && rm -f xrootd-scitokens-*.el7.x86_64.rpm
# HTTP xroot client library
RUN yum install --nogpg -y xrdcl-http-4.12.5\
RUN yum install --nogpg -y xrdcl-http-${xrootd-version}\
&& rm -rf /etc/xrootd
# problem with xrdcl-http not looking /etc/grid-security
......
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