From 66964964845f0a1ca4888d50422f6c056fbb2ff2 Mon Sep 17 00:00:00 2001 From: John LaGrone Date: Wed, 1 Jul 2026 16:43:28 -0500 Subject: [PATCH] add apptainer 1.5.2 --- modules/mp/apps/apptainer/1.1.9.lua | 2 ++ modules/mp/apps/apptainer/1.5.2.lua | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 modules/mp/apps/apptainer/1.5.2.lua diff --git a/modules/mp/apps/apptainer/1.1.9.lua b/modules/mp/apps/apptainer/1.1.9.lua index e83b4878..a030f4e1 100644 --- a/modules/mp/apps/apptainer/1.1.9.lua +++ b/modules/mp/apps/apptainer/1.1.9.lua @@ -5,6 +5,8 @@ source_sh('bash', '/hpc/mp/apps/apptainer/1.1.9/share/bash-completion/completion source_sh('bash', '/hpc/mp/apps/apptainer/1.1.9/share/bash-completion/completions/apptainer') setenv("APPTAINER_BIND","/hpc,/work,/projects,/scratch") +LmodMessage("\n\nApptainer 1.1.9 is deprecated. It will be removed from the system July 15, 2026. \nPlease use apptainer/1.5.2 instead. If you experience issues with the new version, please report them. \n") + help([[Name: Apptainer Version: 1.1.9 Website: https://apptainer.org/ diff --git a/modules/mp/apps/apptainer/1.5.2.lua b/modules/mp/apps/apptainer/1.5.2.lua new file mode 100644 index 00000000..7033482a --- /dev/null +++ b/modules/mp/apps/apptainer/1.5.2.lua @@ -0,0 +1,22 @@ +whatis("Apptainer/Singularity v1.5.2") +family("apptainer") + +always_load('gcc/13.2.0') +always_load('squashfuse/0.6.1-rdj4gkz') +always_load('gocryptfs/2.6.1-d7lgudf') + +local scratch = os.getenv("SCRATCH") +local user = os.getenv("USER") + +local base_path='/hpc/mp/apps/Apptainer/1.5.2/' +prepend_path("PATH",pathJoin(base_path, '/bin')) +source_sh('bash', pathJoin(base_path, '/share/bash-completion/completions/apptainer')) +source_sh('bash', pathJoin(base_path, '/share/bash-completion/completions/singularity')) +setenv("APPTAINER_BIND","/hpc,/work/projects,/projects,/scratch/users/"..user..","..scratch) + +help([[Name: Apptainer +Version: 1.5.2 +Website: https://apptainer.org/ + +Apptainer is an open source container platform designed to be simple, fast, and secure. Many container platforms are available, but Apptainer is designed for ease-of-use on shared systems and in high performance computing (HPC) environments. +]])