Created
February 5, 2021 15:19
-
-
Save dciangot/4f40c0e5ee782113cd810d957bd01286 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM dodasts/dodas-x509 as GETCERTS | |
#FROM centos:7 | |
FROM opensciencegrid/software-base:fresh | |
ENV XRD_VERSION=4.12.5 | |
ENV XRD_HOST=localhost | |
ENV REDIR_HOST=localhost | |
ENV REDIR_CMSD_PORT=3113 | |
ENV CACHE_LOG_LEVEL=info | |
ENV CACHE_HTTP_PORT=8087 | |
ENV ORIGIN_HOST=https://xs-102-03-41.cr.cnaf.infn.it | |
ENV ORIGIN_XRD_PORT=8086 | |
ENV STREAMS=256 | |
ENV LOW_WM=0.85 | |
ENV HI_WM=0.95 | |
ENV CACHE_RAM_GB=6 | |
ENV BLOCK_SIZE=512k | |
ENV N_PREFETCH=0 | |
ENV CACHE_PATH=/data | |
WORKDIR /etc/yum.repos.d | |
RUN sed -i 's/^metalink/#&/' /etc/yum.repos.d/epel.repo | |
RUN sed -i '/baseurl/s/^#//g' /etc/yum.repos.d/epel.repo | |
RUN yum install -y wget | |
RUN wget http://repository.egi.eu/sw/production/cas/1/current/repo-files/EGI-trustanchors.repo | |
RUN groupadd -g 1091 xrootd | |
RUN useradd xrootd -u 1091 -g 1091 | |
RUN yum update -y | |
RUN yum remove -y xrootd | |
RUN yum install -y openssl xrootd-server-$XRD_VERSION xrootd-voms-$XRD_VERSION xrootd-server-devel-$XRD_VERSION xrootd-devel-$XRD_VERSION | |
RUN yum install -y sysstat vim gcc make cmake gcc-c++ rpm-build git sudo davix-devel | |
RUN yum install -y xrootd-scitokens | |
COPY config/* /etc/xrootd/ | |
RUN chown -R xrootd: /etc/xrootd/ | |
COPY --from=0 /usr/local/bin/dodas-x509 /usr/local/bin/dodas-x509 | |
RUN chmod +x /usr/local/bin/dodas-x509 | |
RUN mkdir -p /data && chown -R xrootd: /data | |
RUN mkdir -p /xrd /var/run/xrootd && chown -R xrootd: /xrd /var/run/xrootd | |
COPY scripts/* /xrd/ | |
RUN chmod -R +x /xrd/ | |
COPY ca/DODAS.pem /etc/grid-security/certificates/DODAS.pem | |
COPY ca/DODAS.key /etc/grid-security/certificates/DODAS.key | |
RUN rm -rf /etc/grid-security/host* | |
RUN git clone https://github.com/xrootd/xrdcl-http.git /root/xrdcl-http | |
WORKDIR /root/xrdcl-http | |
RUN mkdir build \ | |
&& cd build \ | |
&& cmake .. -DCMAKE_INSTALL_LIBDIR=/usr/lib64 \ | |
&& make \ | |
&& make install | |
WORKDIR /xrd | |
ENTRYPOINT ["/xrd/start.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment