Software for Liquid Argon time projection chambers
Fermilab currently supports SL7 builds in apptainer. Note that the ups flavor must be specified. Any number of disk directories may be specified after the -B
option.
apptainer shell -s /bin/bash -B /cvmfs,$PWD /cvmfs/singularity.opensciencegrid.org/fermilab/fnal-dev-sl7:latest
export UPS_OVERRIDE='-H Linux64bit+3.10-2.17'
For Jenkins build jobs, we start the apptainer and run the job in the same command. The build script then must set UPS_OVERRIDE
.
# start the container and run the build
/cvmfs/oasis.opensciencegrid.org/mis/apptainer/current/bin/apptainer exec \
--pid --ipc \
-B /etc/hosts,/tmp,/cvmfs/,${WORKSPACE} \
--pwd ${WORKSPACE} \
/cvmfs/singularity.opensciencegrid.org/fermilab/fnal-dev-sl7:latest /bin/bash ./larutils/buildScripts/build-larsoft.sh
status=$?
Docker is no longer a recommended container. However, the instructions are here for a Docker container approach.