From 3763f0b6d0d12a4a2ab8ad20e861baf65fd6802c Mon Sep 17 00:00:00 2001
From: Hauke Kirchner <hauke.gronenberg@gwdg.de>
Date: Thu, 15 Aug 2024 15:05:33 +0000
Subject: [PATCH] edited container building scripts to make them work with
 KISSKI accounts

---
 code/container/build_dlc-conda-example.sh | 6 +++---
 code/container/build_dlc-dlwgpu.sh        | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/code/container/build_dlc-conda-example.sh b/code/container/build_dlc-conda-example.sh
index eb0a978..38a0654 100644
--- a/code/container/build_dlc-conda-example.sh
+++ b/code/container/build_dlc-conda-example.sh
@@ -1,12 +1,12 @@
 #!/usr/bin/env bash
 module load apptainer
 
-export APPTAINER_CACHEDIR=$WORK/.apptainer/cache
+#export APPTAINER_CACHEDIR=$WORK/.apptainer/cache
 
 # define software stack that will become default soon (September 2024)
 # see https://docs.hpc.gwdg.de/software/nhr_lmod/index.html
 export PREFERRED_SOFTWARE_STACK=nhr-lmod
 source /sw/etc/profile/profile.sh
 
-rm $WORK/dlc-conda-example.sif
-apptainer build --nv $WORK/dlc-conda-example.sif dlc-conda-example.def > build_dlc-conda-example.log 2>&1
+rm ~/dlc-conda-example.sif
+apptainer build --nv ~/dlc-conda-example.sif dlc-conda-example.def > build_dlc-conda-example.log 2>&1
diff --git a/code/container/build_dlc-dlwgpu.sh b/code/container/build_dlc-dlwgpu.sh
index 2bf05f1..836a156 100644
--- a/code/container/build_dlc-dlwgpu.sh
+++ b/code/container/build_dlc-dlwgpu.sh
@@ -1,11 +1,11 @@
 #!/usr/bin/env bash
 module load apptainer
-export APPTAINER_CACHEDIR=$WORK/.apptainer/cache
+#export APPTAINER_CACHEDIR=$WORK/.apptainer/cache
 
 # define software stack that will become default soon (September 2024)
 # see https://docs.hpc.gwdg.de/software/nhr_lmod/index.html
 export PREFERRED_SOFTWARE_STACK=nhr-lmod
 source /sw/etc/profile/profile.sh
 
-rm $WORK/dlc-dlwgpu.sif
-apptainer build --nv $WORK/dlc-dlwgpu.sif dlc-dlwgpu.def > build_dlc-dlwgpu.log 2>&1
+rm ~/dlc-dlwgpu.sif
+apptainer build --nv ~/dlc-dlwgpu.sif dlc-dlwgpu.def > build_dlc-dlwgpu.log 2>&1
-- 
GitLab