Skip to content

Commit 048d7ec

Browse files
committed
Allow to set SINGULARITY_HOME before
build_container.sh sets SINGULARITY_HOME in a specific way which we may need to adjust for the EESSI bot. To do so we check if SINGULARITY_HOME is already set before the script is run and only set if it is not yet set.
1 parent f0ad86b commit 048d7ec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build_container.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ else
5050
export SINGULARITY_BIND="$SINGULARITY_BIND,$BIND_PATHS"
5151
fi
5252

53-
export SINGULARITY_HOME="$EESSI_TMPDIR/home:/home/$USER"
53+
# allow that SINGULARITY_HOME is defined before script is run
54+
if [ -z $SINGULARITY_HOME ]; then
55+
export SINGULARITY_HOME="$EESSI_TMPDIR/home:/home/$USER"
56+
fi
5457

5558
# set environment variables for fuse mounts in Singularity container
5659
export EESSI_PILOT_READONLY="container:cvmfs2 pilot.eessi-hpc.org /cvmfs_ro/pilot.eessi-hpc.org"

0 commit comments

Comments
 (0)