File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1039,9 +1039,13 @@ for arg in "${PASS_THROUGH[@]}"; do
10391039 ADDITIONAL_CONTAINER_OPTIONS+=(${arg} )
10401040done
10411041
1042- echo " Launching container with command (next line):"
1043- echo " singularity ${RUN_QUIET} ${MODE} ${ADDITIONAL_CONTAINER_OPTIONS[@]} ${EESSI_FUSE_MOUNTS[@]} ${CONTAINER} $@ "
1044- singularity ${RUN_QUIET} ${MODE} " ${ADDITIONAL_CONTAINER_OPTIONS[@]} " " ${EESSI_FUSE_MOUNTS[@]} " ${CONTAINER} " $@ "
1042+ # using a sandbox image mode is more robust at the cleanup phase at the end
1043+ CONTAINER_SANDBOX=CONTAINER.removesuffix(" .sif" ) + " .sandbox"
1044+ echo " Building a sandbox image with command (next line):"
1045+ echo " singularity build --sandbox ${CONTAINER_SANDBOX} ${CONTAINER} "
1046+ echo " Launching sandbox container with command (next line):"
1047+ echo " singularity ${RUN_QUIET} ${MODE} ${ADDITIONAL_CONTAINER_OPTIONS[@]} ${EESSI_FUSE_MOUNTS[@]} ${CONTAINER_SANDBOX} $@ "
1048+ singularity ${RUN_QUIET} ${MODE} " ${ADDITIONAL_CONTAINER_OPTIONS[@]} " " ${EESSI_FUSE_MOUNTS[@]} " ${CONTAINER_SANDBOX} " $@ "
10451049exit_code=$?
10461050
10471051# 6. save tmp if requested (arg -s|--save)
You can’t perform that action at this time.
0 commit comments