Difference between revisions of "HOWTO use the GlueX Singularity Container"

From GlueXWiki
Jump to: navigation, search
m (Set-Up the GlueX Environment)
(Get the Software and Support Files)
Line 9: Line 9:
 
== Get the Software and Support Files ==
 
== Get the Software and Support Files ==
  
Use one of two methods.
+
Use one of three methods.
  
 
=== 1. Tarball ===
 
=== 1. Tarball ===
Line 17: Line 17:
 
# tar zxvf <directory containing tarball>/group_halld.tar.gz
 
# tar zxvf <directory containing tarball>/group_halld.tar.gz
  
=== 2. rsync ===
+
=== 2. rsync with direct ssh ===
  
 
  rsync -ruvt --delete scosg16.jlab.org:/cvmfs/oasis.opensciencegrid.org/gluex/group/ <directory that contains "group">/group/
 
  rsync -ruvt --delete scosg16.jlab.org:/cvmfs/oasis.opensciencegrid.org/gluex/group/ <directory that contains "group">/group/
 +
 +
=== 3. rsync through ssh tunnel ===
 +
 +
<ol>
 +
<li> Establish the tunnel
 +
<pre>
 +
ssh -t -L9001:localhost:9001 jlab.jlab.org ssh -t -L9001:localhost:22 scosg16
 +
</pre>
 +
 +
<li> In a separate shell instance, do the rsync
 +
<pre>
 +
rsync -ruvt --delete -e 'ssh -p9001' localhost:/cvmfs/oasis.opensciencegrid.org/gluex/group/ <directory that contains "group">/group/
 +
</pre>
 +
</ol>
  
 
== Get a Shell Inside the Container ==
 
== Get a Shell Inside the Container ==

Revision as of 14:26, 10 April 2018

Install Singularity

See the instructions on the Singularity site.

Get the Container

Download gluex_centos7.img, the container.

Get the Software and Support Files

Use one of three methods.

1. Tarball

  1. Download the [tarball]. It's 40 GB.
  2. cd <directory that will contain "group">
  3. tar zxvf <directory containing tarball>/group_halld.tar.gz

2. rsync with direct ssh

rsync -ruvt --delete scosg16.jlab.org:/cvmfs/oasis.opensciencegrid.org/gluex/group/ <directory that contains "group">/group/

3. rsync through ssh tunnel

  1. Establish the tunnel
    ssh -t -L9001:localhost:9001 jlab.jlab.org ssh -t -L9001:localhost:22 scosg16
    
  2. In a separate shell instance, do the rsync
    rsync -ruvt --delete -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