WIP: bindin the local site config under cvmfs path
This is to allow sites to use singularity without having to move their siteconf on cvmfs or under /etc/cvmfs. I've changed validation script so that it looks at the link in /cvmfs/cms.cern.ch/SITECONF/local and binds its parent directory in /cvmfs/cms.cern.ch/SITECONF. This gives more flexibility to the sites in the location of their siteconfig. Credits for this solutions go to Fred Schaer administrator at GRIF_IRFU (I've just provided this rough implementation in the validation and wrapper scripts).
Now, some point:
-
of course this will not work with all siteconfig locations. The parent directory of the SITECONF/local target must have a "local" file which is the actual siteconf directory or a link to it, in which case the target should be under the bind directory path and defined as a relative link. In the scripts I've not added tests to these conditions as I thought it was probably simpler to detail them in the doc. What do you think?
-
in the wrapper script maybe I should add an variable to make this optional? like OSG_SINGULARITY_BIND_SITECONF taken from a SingularityBindSITECONF classAd (if I understand correctly how the script works)
-
I've tested the validation script at our site. So
- singularity-runtime-2.4.2-1.osg34.el6.x86_64 on SL6
- allow setuid = yes
- enable overlay = no
-
I admit I've no idea how to test the wrapped script. Any suggestions?