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

Update cvmfs-inside-docker.Dockerfile

parent bed17db8
......@@ -12,13 +12,33 @@ RUN yum -y install cvmfs cvmfs-config-default
RUN /usr/bin/cvmfs_config setup
RUN /bin/touch /etc/cvmfs/default.local && /bin/echo "," > /etc/cvmfs/default.local
RUN /bin/echo "CVMFS_HTTP_PROXY=" >> /etc/cvmfs/default.local
RUN echo "#!/bin/bash" > /
RUN echo "/sbin/service autofs restart" >> /
RUN echo "/usr/bin/cvmfs_config probe" >> /
RUN echo "bash" >> /
RUN /bin/chmod +x /
RUN echo "#!/bin/bash" > /etc/profile.d/ && echo "/sbin/service autofs restart" >> /etc/profile.d/
RUN echo "/usr/bin/cvmfs_config probe" >> /etc/profile.d/
#RUN echo 'if [ "X$CMS_CMD" = "X" ] ; then /bin/bash ; else $CMS_CMD ; fi' >> /etc/profile.d/
RUN /bin/chmod +x /etc/profile.d/
RUN wget -O /usr/local/bin/dumb-init
RUN chmod +x /usr/local/bin/dumb-init
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
CMD ["/"]
#pull the image from docker hub
docker pull cmssw/cmssw:cmsenv-slc6
#list images and get the image id
docker images
#run the previliged container
docker run --privileged -i -t <image-id> /bin/bash
#check cvmfs mounts inside container
ls /cvmfs/
df -hT
To use an init process inside the container to prevent zombies use dumb-init.
docker run --privileged -i -t ec379dcc74c1 dumb-init -c -- /bin/bash
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