Commit 0cba2539 authored by Fabio Luchetti's avatar Fabio Luchetti
Browse files

globally update the environment in centos images to include the eos-xrootd relevant paths

parent 7f783e96
Pipeline #2920912 skipped with stage
......@@ -69,6 +69,10 @@ RUN createrepo ${EOSREPODIR} \
RUN if [ "${EOS_CODENAME}" != "diopside" ]; then yum -y --nogpg install quarkdb; else yum -y --nogpg install eos-quarkdb; fi
# Expect to use eos-xrootd
RUN echo "PATH=/opt/eos/xrootd/bin:\$PATH" >> /etc/profile.d/eos-xrootd.sh \
&& echo "LD_LIBRARY_PATH=/opt/eos/xrootd/lib64:\$LD_LIBRARY_PATH" >> /etc/profile.d/eos-xrootd.sh
# Change owner of /var/spool/xrootd directory to daemon
RUN chown daemon:daemon /var/spool/xrootd
......
......@@ -70,6 +70,10 @@ RUN createrepo ${EOSREPODIR} \
RUN if [ "${EOS_CODENAME}" != "diopside" ]; then yum -y --nogpg install quarkdb; else yum -y --nogpg install eos-quarkdb; fi
# Expect to use eos-xrootd
RUN echo "PATH=/opt/eos/xrootd/bin:\$PATH" >> /etc/profile.d/eos-xrootd.sh \
&& echo "LD_LIBRARY_PATH=/opt/eos/xrootd/lib64:\$LD_LIBRARY_PATH" >> /etc/profile.d/eos-xrootd.sh
# sss keytabs needs to be 400
RUN chmod 400 /etc/eos.keytab /etc/eos.client.keytab
......
......@@ -78,6 +78,10 @@ RUN createrepo ${EOSREPODIR}; \
RUN if [ "${EOS_CODENAME}" != "diopside" ]; then yum -y --nogpg install quarkdb; else yum -y --nogpg install eos-quarkdb; fi
# Expect to use eos-xrootd
RUN echo "PATH=/opt/eos/xrootd/bin:\$PATH" >> /etc/profile.d/eos-xrootd.sh \
&& echo "LD_LIBRARY_PATH=/opt/eos/xrootd/lib64:\$LD_LIBRARY_PATH" >> /etc/profile.d/eos-xrootd.sh
# Change owner of /var/spool/xrootd directory to daemon
RUN chown daemon:daemon /var/spool/xrootd
......
......@@ -66,6 +66,10 @@ RUN createrepo ${EOSREPODIR} \
eos-archive eos-client eos-fuse eos-fusex eos-server eos-test eos-testkeytab eos-coverage \
&& yum clean all
# Expect to use eos-xrootd
RUN echo "PATH=/opt/eos/xrootd/bin:\$PATH" >> /etc/profile.d/eos-xrootd.sh \
&& echo "LD_LIBRARY_PATH=/opt/eos/xrootd/lib64:\$LD_LIBRARY_PATH" >> /etc/profile.d/eos-xrootd.sh
# Setup environment for coverage profiling
ADD eos-docker/coverage/image/ /eos-coverage/
ENV GCOV_PREFIX="/var/eos/coverage/"
......
......@@ -80,6 +80,10 @@ RUN createrepo ${EOSREPODIR}; \
RUN if [ "${EOS_CODENAME}" != "diopside" ]; then yum -y --nogpg install quarkdb; else yum -y --nogpg install eos-quarkdb; fi
# Expect to use eos-xrootd
RUN echo "PATH=/opt/eos/xrootd/bin:\$PATH" >> /etc/profile.d/eos-xrootd.sh \
&& echo "LD_LIBRARY_PATH=/opt/eos/xrootd/lib64:\$LD_LIBRARY_PATH" >> /etc/profile.d/eos-xrootd.sh
# Change owner of /var/spool/xrootd directory to daemon
RUN chown daemon:daemon /var/spool/xrootd
......
......@@ -73,6 +73,10 @@ RUN createrepo ${EOSREPODIR} \
RUN if [ "${EOS_CODENAME}" != "diopside" ]; then yum -y --nogpg install quarkdb; fi
# Expect to use eos-xrootd
RUN echo "PATH=/opt/eos/xrootd/bin:\$PATH" >> /etc/profile.d/eos-xrootd.sh \
&& echo "LD_LIBRARY_PATH=/opt/eos/xrootd/lib64:\$LD_LIBRARY_PATH" >> /etc/profile.d/eos-xrootd.sh
# Change owner of /var/spool/xrootd directory to daemon
RUN chown daemon:daemon /var/spool/xrootd
......
......@@ -62,6 +62,10 @@ RUN createrepo ${EOSREPODIR} \
eos-archive eos-client eos-fuse eos-fusex eos-ns-inspect eos-server eos-test eos-testkeytab \
&& yum clean all
# Expect to use eos-xrootd
RUN echo "PATH=/opt/eos/xrootd/bin:\$PATH" >> /etc/profile.d/eos-xrootd.sh \
&& echo "LD_LIBRARY_PATH=/opt/eos/xrootd/lib64:\$LD_LIBRARY_PATH" >> /etc/profile.d/eos-xrootd.sh
# sss keytabs needs to be 400
RUN chmod 400 /etc/eos.keytab /etc/eos.client.keytab
......
......@@ -28,7 +28,8 @@ RUN yum -y --nogpg install epel-release \
&& yum clean all && rm -rf /var/cache/yum
# Expect to use eos-xrootd
RUN sed -i "s|/usr/bin/xrdcp|/opt/eos/xrootd/bin/xrdcp|g" /etc/xrd.cf.fst
RUN echo "PATH=/opt/eos/xrootd/bin:\$PATH" >> /etc/profile.d/eos-xrootd.sh \
&& echo "LD_LIBRARY_PATH=/opt/eos/xrootd/lib64:\$LD_LIBRARY_PATH" >> /etc/profile.d/eos-xrootd.sh
# sss keytabs needs to be 400
RUN chmod 400 /etc/eos.keytab /etc/eos.client.keytab
......
......@@ -24,6 +24,10 @@ RUN yum -y --nogpg install epel-release \
eos-fusex \
&& yum clean all && rm -rf /var/cache/yum
# Expect to use eos-xrootd
RUN echo "PATH=/opt/eos/xrootd/bin:\$PATH" >> /etc/profile.d/eos-xrootd.sh \
&& echo "LD_LIBRARY_PATH=/opt/eos/xrootd/lib64:\$LD_LIBRARY_PATH" >> /etc/profile.d/eos-xrootd.sh
# Install some much needed utility: please bloat with care!
RUN yum -y --nogpg install nano && yum clean all && rm -rf /var/cache/yum
......
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