Skip to content

Commit

Permalink
Merge pull request #128 from DrDaveD/add-singularity-premount
Browse files Browse the repository at this point in the history
document Singularity 3.4 premounts
  • Loading branch information
jblomer committed Jan 6, 2020
2 parents 846030f + ef5f310 commit 424f114
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cpt-configure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,23 @@ as command line parameter to the CernVM-FS client. A working code example is
available in the
`CernVM-FS tests <https://github.com/cvmfs/cvmfs/blob/cvmfs-2.7/test/src/084-premounted/fuse_premount.c>`_.

In order to use the pre-mount functionality in Singularity, create a
container that has the ``cvmfs`` package and configuration installed in
it, and also the corresponding ``cvmfs-fuse3`` package. Bind-mount scratch
space at ``/var/run/cvmfs`` and cache space at ``/var/lib/cvmfs``.
For each desired repository, add a ``--fusemount`` option with
``container:cvmfs2`` followed by the repository name and mountpoint,
separated by whitespace. First mount the configuration repository if
required. For example:

::

CONFIGREPO=config-osg.opensciencegrid.org
singularity exec -S /var/run/cvmfs -B $HOME/cvmfs_cache:/var/lib/cvmfs \
--fusemount "container:cvmfs2 $CONFIGREPO /cvmfs/$CONFIGREPO" \
--fusemount "container:cvmfs2 cms.cern.ch /cvmfs/cms.cern.ch" \
docker://davedykstra/cvmfs-fuse3 bash



Docker Containers
Expand Down
8 changes: 8 additions & 0 deletions cpt-hpc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ other nodes with respect to CernVM-FS
These problems can be overcome as described in the following sections.


Using Singularity pre-mounts
----------------------------
If the fuse package is not available but `Singularity` 3.4 or later is
installed on the supercomputer, the CernVM-FS Fuse client can be used
from inside of a container via the Fuse3 "pre-mount" feature. See
:ref:`Pre-mounting <sct_premount>`.


Parrot-Mounted CernVM-FS in lieu of Fuse Module
-----------------------------------------------
Instead of accessing /cvmfs through a Fuse module, processes can use the
Expand Down

0 comments on commit 424f114

Please sign in to comment.