Difference between revisions of "HOWTO use the GlueX Singularity Container"
From GlueXWiki
m (→Get the Software and Support Files) |
(→3. rsync through ssh tunnel) |
||
Line 30: | Line 30: | ||
<li> Establish the tunnel | <li> Establish the tunnel | ||
<pre> | <pre> | ||
− | ssh -t -L9001:localhost:9001 | + | ssh -t -L9001:localhost:9001 jogin.jlab.org ssh -t -L9001:localhost:22 scosg16 |
</pre> | </pre> | ||
Revision as of 10:54, 7 May 2018
Contents
Install Singularity
See the instructions on the Singularity site.
Alternately, RedHat Enterprise 7 has an RPM:
yum install singularity
Get the Container
Download gluex_centos7.img, the container.
Get the Software and Support Files
Use one of three methods.
1. tarball
- Download the tarball: group.halld.tar.gz. It's 18 GB.
- cd <directory that will contain "group">
- tar zxvf <directory containing tarball>/group_halld.tar.gz
2. rsync with direct ssh
rsync -ruvt --delete --links scosg16.jlab.org:/cvmfs/oasis.opensciencegrid.org/gluex/group/ <directory that contains "group">/group/
3. rsync through ssh tunnel
- Establish the tunnel
ssh -t -L9001:localhost:9001 jogin.jlab.org ssh -t -L9001:localhost:22 scosg16
- In a separate shell instance, do the rsync
rsync -ruvt --delete --links -e 'ssh -p9001' localhost:/cvmfs/oasis.opensciencegrid.org/gluex/group/ <directory that contains "group">/group/
Get a Shell Inside the Container
singularity shell --bind <directory that contains "group">/group/halld:/group/halld <directory with container>/gluex_centos7.img
Set-Up the GlueX Environment
source /group/halld/Software/build_scripts/gluex_env_jlab.sh