Commit bed17db8 authored by ijaz ahmad's avatar ijaz ahmad Committed by GitHub
Browse files

Create cvmfs-inside-docker.Dockerfile

parent 716f6e46
#IJAZ AHMAD , CMS-OFFLINE COMPUTING , CMSSW , AUGUST , 2016.
FROM centos:centos6
RUN groupadd -g 500 cmsinst && adduser -u 500 -g 500 cmsinst && install -d /opt && install -d -o cmsinst /opt/cms
RUN groupadd -g 501 cmsbld && adduser -u 501 -g 501 cmsbld
RUN yum -y update && yum -y install wget git tcsh zsh tcl perl-ExtUtils-Embed perl-libwww-perl compat-libstdc++-33 libXmu libXpm zip e2fsprogs \
krb5-devel krb5-worstation tk mesa-libGLU mesa-libGL compat-readline5 libXcursor libXrandr libXi libXinerama
RUN yum -y install https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest.noarch.rpm
RUN yum -y install cvmfs cvmfs-config-default
RUN /usr/bin/cvmfs_config setup
RUN /bin/touch /etc/cvmfs/default.local && /bin/echo "CVMFS_REPOSITORIES=cms.cern.ch,grid.cern.ch" > /etc/cvmfs/default.local
RUN /bin/echo "CVMFS_HTTP_PROXY=http://ca-proxy.cern.ch:3128" >> /etc/cvmfs/default.local
RUN echo "#!/bin/bash" > /run.sh
RUN echo "/sbin/service autofs restart" >> /run.sh
RUN echo "/usr/bin/cvmfs_config probe" >> /run.sh
RUN echo "bash" >> /run.sh
RUN /bin/chmod +x /run.sh
RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.1.3/dumb-init_1.1.3_amd64
RUN chmod +x /usr/local/bin/dumb-init
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
CMD ["/run.sh"]
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