Project

General

Profile

Artdaq-SL7-Singularity

Thanks to Brett Viren for initiating this singularity method.

install Singularity v3.1 or higher according to your OS

create container

download recipe file - Singularity.artdaq
wget https://cdcvs.fnal.gov/redmine/attachments/download/54669/Singularity.artdaq
rm -f artdaq.sif;\
 singularity --version;\
 sudo singularity build artdaq.sif Singularity.artdaq # creates file/image which has access to local FS

start container with re-initialized login environment

Note: entering the container with exec or shell inherits your current environment which is likely not what you want, so enter the container with the
following command:

singularity exec  artdaq.sif env -i HOME=~ SHELL=$SHELL TERM=$TERM DISPLAY=$DISPLAY $SHELL --login

get/build demo system

cd ~/work/artdaqPrj/demo2   # mkdir if appropriate
rm -fr *;                         : clean;\
wget https://cdcvs.fnal.gov/redmine/projects/artdaq-demo/repository/revisions/develop/raw/tools/quick-mrb-start.sh;\
chmod +x quick-mrb-start.sh;\
./quick-mrb-start.sh    # use the latest tagged version of artdaq_demo

run demo

./run_demo.sh