

You can mount CVMFS from within a container on container startup. The cvmfs-automounter allows you to provide CVMFS to other containers on Linux.
#Docker for mac bind mount install#
You can install CVMFS on your local computer. What this means is that Docker will view the macOS host as the authoritative source of truth, and there could be delays before updates are visible within the container. (and beyond) on your local development machine, and it doesn’t need to knowĪnything about CVMFS or CMSSW in the first place. As mentioned earlier, one of the options that Docker Desktop for Mac allows is setting a bind mount as type cached.
#Docker for mac bind mount code#
Developing CMS code on your laptopīy using containers, you can effectively develop any all HEP-related code Or simply connect back to the container at a later stage. The CVMFS daemon is started when the container is started for the first The downside to starting CVMFS in the container start bash in theĬontainer and execute the build.sh afterwards so that you stay inside You can of course also do this manually, i.e. This should set up CMSSW, compile your code, and then exit the containerĪgain. The following command (mind that -rm deletes the container after exiting):ĭocker run -rm -cap-add SYS_ADMIN -device /dev/fuse -it -v $( pwd ): $( pwd ) -w $( pwd ) /clange/cmssw-docker/cc7-cmssw-cvmfs:latest bash To run your analysis container and give it access to the /cvmfs mount, run However, on a Mac you need to go to Docker Settings -> Resources -> File Sharing This is not necessary when running on a Mac. To avoid common pitfalls when running Linux on your computer and trying toīind mount CVMFS from the host. If you would like to install CVMFS on your Interest of time, we will not install CVMFS now, but instead use the second Packages are provided on the CVMFS Downloads page. Installing CVMFS on a local computerĬVMFS can be installed locally on your computer. We will learnĪbout other options that will work later. However, it is notĮssential for this lesson that any of these options work.

Try for yourself which option works best for you. At the moment, no clear recommendations can be Unfortunately, all the options below have some caveats, and they might notĮven work on your computer. We will go through these options in the following.
