Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
fcs:eic:singularity [2017/07/26 22:05]
dblyth [On a desktop/laptop]
fcs:eic:singularity [2017/07/26 22:11]
dblyth [On the Open Science Grid (OSG)]
Line 29: Line 29:
 +SingularityBindCVMFS = False +SingularityBindCVMFS = False
 </code>, </code>,
-Where SingularityBindCVMFS can be changed to True if the cvmfs mount is required inside the container.  With these options added, the use of the Singularity image by your OSG job wrapper script is fairly seamless, and the job executable will be run inside of the image via the default shell, /bin/sh.  For this particular image, the default shell will not load the environment setup scripts, so it's usually necessary to run commands inside of a bash login shell, +Where SingularityBindCVMFS can be changed to True if the cvmfs mount is required inside the container.  With these options added, the use of the Singularity image by your OSG job wrapper script is fairly seamless, and the job executable will be run inside of the image via the default shell, /bin/sh.  For this particular image, the default shell will not load the environment setup scripts, so it's usually necessary to run commands inside of a bash login shell by either using the shebang 
-<code> +<code bash
-bash -l -"..."+#!/bin/bash -l 
 +</code> 
 +, or by wrapping commands like 
 +<code bash> 
 +bash -lc "..."
 </code> </code>
 .  This environment can be tested on the login server by running .  This environment can be tested on the login server by running