https://drupal.star.bnl.gov/STAR/blog/mpoat/install-docker-run-star-sw-container-scientific-linux https://drupal.star.bnl.gov/STAR/comp/db/docker singularity run -B $(pwd)/output_plots:/dAuPi0Photon/output_plots docker://registry.sdcc.bnl.gov/dap-phenix/dauphotonpi0 STAR environments with ROOT 5, 6.16, 6.24 are available. The Spack package manager is used to provide various dependencies to support BFC reco jobs Base images available at https://github.com/orgs/star-bnl/packages and can be used e.g. docker run -it ghcr.io/star-bnl/star-spack:v0.3.0-root6-gcc485 bash docker run -it ghcr.io/star-bnl/star-sw:main-root6-gcc485 bash The environments are also available on the SDCC interactive machines module use /cvmfs/star.sdcc.bnl.gov/star-spack/spack/share/spack/modules/linux-rhel7-x86_64 module avail module load root-6.24.06 # or load star-env to load all dependencies at once module load star-env-0.3.0-root-6.24.06 Docker and singularity containers with STAR releases available via ghcr.io and cvmfs respectively: https://github.com/star-bnl/star-sw/pkgs/container/star-sw/versions ls /cvmfs/singularity.opensciencegrid.org/star-bnl/ For interactive work singularity may be prefered, see https://star-bnl.github.io/star-sw/#containers singularity run /cvmfs/singularity.opensciencegrid.org/star-bnl/star-sw:SL20c singularity run -B /star/rcf docker://ghcr.io/star-bnl/star-sw:main-root5-gcc485 root4star -b -q -l 'bfc.C(10, \"pp2022,StiCA,BEmcChkStat,epdhit\", \"/star/rcf/test/daq/2022/010/23010027/st_physics_23010027_raw_1000015.daq\")' ROOT6 environments/images are not ready for production due to issues with STAR geometry at runtime singularity run -B /star/rcf docker://ghcr.io/star-bnl/star-sw:main-root6-gcc485 root4star -b -q -l 'bfc.C(10, \"pp2022,StiCA,BEmcChkStat,epdhit\", \"/star/rcf/test/daq/2022/010/23010027/st_physics_23010027_raw_1000015.daq\")' Run docker from singularity https://docs.sylabs.io/guides/2.6/user-guide/singularity_and_docker.html [rcas6005] ~/work/Test $ singularity help Linux container platform optimized for High Performance Computing (HPC) and Enterprise Performance Computing (EPC) Usage: singularity [global options...] Description: Singularity containers provide an application virtualization layer enabling mobility of compute via both application and environment portability. With Singularity one is capable of building a root file system that runs on any other Linux system where Singularity is installed. Options: -c, --config string specify a configuration file (for root or unprivileged installation only) (default "/etc/singularity/singularity.conf") -d, --debug print debugging information (highest verbosity) -h, --help help for singularity --nocolor print without color output (default False) -q, --quiet suppress normal output -s, --silent only print errors -v, --verbose print additional information Available Commands: build Build a Singularity image cache Manage the local cache capability Manage Linux capabilities for users and groups config Manage various singularity configuration (root user only) delete Deletes requested image from the library exec Run a command within a container help Help about any command inspect Show metadata for an image instance Manage containers running as services key Manage OpenPGP keys oci Manage OCI containers plugin Manage Singularity plugins pull Pull an image from a URI push Upload image to the provided URI remote Manage singularity remote endpoints, keyservers and OCI/Docker registry credentials run Run the user-defined default command within a container run-help Show the user-defined help for an image search Search a Container Library for images shell Run a shell within a container sif siftool is a program for Singularity Image Format (SIF) file manipulation sign Attach digital signature(s) to an image test Run the user-defined tests within a container verify Verify cryptographic signatures attached to an image version Show the version for Singularity Examples: $ singularity help [] $ singularity help build $ singularity help instance start [starsub01] /gpfs/mnt/gpfs01/star/subsys-tpc/fisyak/sources/spack $ apptainer --help Linux container platform optimized for High Performance Computing (HPC) and Enterprise Performance Computing (EPC) Usage: apptainer [global options...] Description: Apptainer containers provide an application virtualization layer enabling mobility of compute via both application and environment portability. With Apptainer one is capable of building a root file system that runs on any other Linux system where Apptainer is installed. Options: --build-config use configuration needed for building containers -c, --config string specify a configuration file (for root or unprivileged installation only) (default "/etc/apptainer/apptainer.conf") -d, --debug print debugging information (highest verbosity) -h, --help help for apptainer --nocolor print without color output (default False) -q, --quiet suppress normal output -s, --silent only print errors -v, --verbose print additional information --version version for apptainer Available Commands: build Build an Apptainer image cache Manage the local cache capability Manage Linux capabilities for users and groups checkpoint Manage container checkpoint state (experimental) completion Generate the autocompletion script for the specified shell config Manage various apptainer configuration (root user only) delete Deletes requested image from the library exec Run a command within a container help Help about any command inspect Show metadata for an image instance Manage containers running as services key Manage OpenPGP keys oci Manage OCI containers overlay Manage an EXT3 writable overlay image plugin Manage Apptainer plugins pull Pull an image from a URI push Upload image to the provided URI remote Manage apptainer remote endpoints, keyservers and OCI/Docker registry credentials run Run the user-defined default command within a container run-help Show the user-defined help for an image search Search a Container Library for images shell Run a shell within a container sif Manipulate Singularity Image Format (SIF) images sign Add digital signature(s) to an image test Run the user-defined tests within a container verify Verify digital signature(s) within an image version Show the version for Apptainer Examples: $ apptainer help [] $ apptainer help build $ apptainer help instance start For additional help or support, please visit https://apptainer.org/help/ singularity shell --bind /path/to/working/directory docker://rootproject/root [rcas6006] ~/work/docker $ singularity shell --bind /star/u/fisyak/work/docker docker://rootproject/root INFO: Converting OCI blobs to SIF format INFO: Starting build... Getting image source signatures Copying blob 31734b193a81 done Copying blob 4f4fb700ef54 done Copying blob 1dc758ddc48a done Copying blob b64931c31e7e done Copying blob 4fa1ef3c5515 done Copying config acdb8c6460 done Writing manifest to image destination Storing signatures 2025/01/20 16:11:16 info unpack layer: sha256:31734b193a814b7d6f96f0d11a89c942ca61ac79d819105323c548bf31f98613 2025/01/20 16:11:18 info unpack layer: sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 2025/01/20 16:11:18 info unpack layer: sha256:1dc758ddc48a2368ef29c8e1c695627b276de834d220a11c28a7819d1508bfc1 2025/01/20 16:11:18 info unpack layer: sha256:b64931c31e7ef527c8cab080b6d08915f19fecd5cfa4931d14a6177dc3f5a385 2025/01/20 16:11:55 info unpack layer: sha256:4fa1ef3c551593df7e7303009e81c5cce3485d73685ea163e3e9c8d284a4fb10 INFO: Creating SIF file... Singularity> Singularity> pwd /star/u/fisyak Singularity> root ------------------------------------------------------------------ | Welcome to ROOT 6.34.00 https://root.cern | | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers | | Built for linuxx8664gcc on Nov 14 2024, 06:30:57 | | From tags/v6-34-00-rc1@v6-34-00-rc1 | | With c++ (Ubuntu 14.2.0-4ubuntu2) 14.2.0 | | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |