HOWTO Run GlueX Software with GCC 8 in a CentOS 8 Container
From GlueXWiki
Revision as of 14:19, 17 August 2021 by Marki (Talk | contribs) (Created page with "The following assumes that you are using the bash shell. tcsh can be used as well with appropriate modifications. == Log into the ifarm at JLab == == Enable Singularity ==...")
The following assumes that you are using the bash shell. tcsh can be used as well with appropriate modifications.
Contents
Log into the ifarm at JLab
Enable Singularity
module use /apps/modulefiles module load singularity/3.7.1
Enter the Singularity Container
container_file=/group/halld/www/halldweb/html/dist/gluex_centos-8.2.2004_sng3.6_gin2.15.sif singularity shell --cleanenv --bind /group/halld $container_file
You will be placed in a bash shell session. Your home directory will be available automatically. The --bind option gives you access to the group disk inside the container. If you need other filesystems, use additional --bind options, e.g., "--bind /work/halld".
Set Up the GlueX Environment
source /group/halld/Software/build_scripts/gluex_env_boot_jlab.sh gxenv $HALLD_VERSIONS/version_beta_1.0.xml
This is no different than usual.
Run hd_root
hd_root
You should see the usage message. From this point forward, things should be like a normal session on the ifarm, except that not all of the packages you normally see on the ifarm proper are available in the container.