Using singularity to develop/run CMSSW

We now distribute cmssw-env, cmssw-cc{6,7,8}, cmssw-el{8,9} (available under /cvmfs/cms.cern.ch/common) helper scripts to setup cms env. The singularity images used by these scripts are available under /cvmfs/unpacked.cern.ch/registry.hub.docker.com/cmssw e.g.

  • /cvmfs/unpacked.cern.ch/registry.hub.docker.com/cmssw/el9:x86_64
  • /cvmfs/unpacked.cern.ch/registry.hub.docker.com/cmssw/el8:x86_64
  • /cvmfs/unpacked.cern.ch/registry.hub.docker.com/cmssw/cc7:x86_64
  • /cvmfs/unpacked.cern.ch/registry.hub.docker.com/cmssw/slc6:amd64

Setting up SLC5/SLC6/SLC7/EL8/EL9 CMS environment.

On lxplus, run cmssw-env command to setup up the env e.g.

  • To use SLC 5 environment:
lxplus> cmssw-env --cmsos slc5
Singularity> cat /etc/redhat-release 
Scientific Linux CERN SLC release 5.11 (Boron)
Singularity> exit
lxplus>

OR

lxplus> cmssw-env --cmsos slc5 --command-to-run cat /etc/redhat-release
Scientific Linux CERN SLC release 5.11 (Boron)
  • To use SLC6/CentOS6 environment:
lxplus> cmssw-cc6
Singularity> cat /etc/redhat-release 
CentOS release 6.10 (Final)
Singularity> exit
lxplus>

OR

lxplus> cmssw-cc6 --command-to-run cat /etc/redhat-release
CentOS release 6.10 (Final)
  • To use SLC7/CentOS7 environment:
lxplus> cmssw-cc7
Singularity> cat /etc/redhat-release 
CentOS Linux release 7.8.2003 (Core)
Singularity> exit
lxplus>

OR

lxplus> cmssw-cc7 --command-to-run cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
  • To use EL8/9 environment: CentOS8/RHEL8/EL8 environment can only be set from SLC7/CentOS7 host (e.g. lxplus, lxplsu7)
lxplus> cmssw-el8 # OR cmssw-el9
Singularity> cat /etc/redhat-release
AlmaLinux release 8.5 (Arctic Sphynx)
Singularity> exit
lxplus>

OR

lxplus> cmssw-el9 --command-to-run cat /etc/redhat-release
AlmaLinux release 9.0 Beta (Emerald Puma)