Skip to content

Commit

Permalink
use $JOB_STORAGE as base dir for $SINGULARITY_TMPDIR, if it is define…
Browse files Browse the repository at this point in the history
…d; fall back to $PWD otherwise
  • Loading branch information
bedroge committed Dec 6, 2024
1 parent 9052eb2 commit 5927dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ echo "bot/test.sh: LOAD_MODULES='${LOAD_MODULES}'"
# singularity/apptainer settings: CONTAINER, HOME, TMPDIR, BIND
CONTAINER=$(cfg_get_value "repository" "container")
export SINGULARITY_HOME="${PWD}:/eessi_bot_job"
export SINGULARITY_TMPDIR="${PWD}/singularity_tmpdir"
export SINGULARITY_TMPDIR="${JOB_STORAGE:-${PWD}}/singularity_tmpdir"
mkdir -p ${SINGULARITY_TMPDIR}

# load modules if LOAD_MODULES is not empty
Expand Down

0 comments on commit 5927dae

Please sign in to comment.