@@ -74,7 +74,7 @@ declare -A EXIT_SIGNALS
7474IMAGE_PATH=" $STORAGE_PATH /$SLURM_JOB_ID -$( echo $RANDOM | md5sum | head -c 20) .sif"
7575export IMAGE_PATH
7676/usr/bin/echo " Importing image..."
77- /usr/bin/apptainer --silent pull --disable-cache " $IMAGE_PATH " ' docker://registry-1.docker.io/library/ bash:latest'
77+ /usr/bin/apptainer --silent pull --disable-cache " $IMAGE_PATH " ' docker://bash:latest'
7878/usr/bin/echo " Image successfully imported!"
7979export APPTAINER_BIND=" $STORAGE_PATH :/deepsquare:rw,$DEEPSQUARE_SHARED_TMP :/deepsquare/tmp:rw,$DEEPSQUARE_SHARED_WORLD_TMP :/deepsquare/world-tmp:rw,$DEEPSQUARE_DISK_TMP :/deepsquare/disk/tmp:rw,$DEEPSQUARE_DISK_WORLD_TMP :/deepsquare/disk/world-tmp:rw"
8080# shellcheck disable=SC2097,SC2098,SC1078
@@ -99,6 +99,7 @@ DEEPSQUARE_ENV="/deepsquare/$(basename $DEEPSQUARE_ENV)" /usr/bin/srun --job-nam
9999 --contain \
100100 --writable-tmpfs \
101101 --nv \
102+ --pwd " /" \
102103 " $IMAGE_PATH " \
103104 /bin/sh -c ' id'
104105/usr/bin/echo ' Running: ' ' as 1337'
@@ -194,7 +195,7 @@ EOFenroot
194195IMAGE_PATH=" $STORAGE_PATH /$SLURM_JOB_ID -$( echo $RANDOM | md5sum | head -c 20) .sif"
195196export IMAGE_PATH
196197/usr/bin/echo " Importing image..."
197- /usr/bin/apptainer --silent pull --disable-cache " $IMAGE_PATH " ' docker://registry-1.docker.io/library/ bash:latest'
198+ /usr/bin/apptainer --silent pull --disable-cache " $IMAGE_PATH " ' docker://bash:latest'
198199/usr/bin/echo " Image successfully imported!"
199200export APPTAINER_BIND=" $STORAGE_PATH :/deepsquare:rw,$DEEPSQUARE_SHARED_TMP :/deepsquare/tmp:rw,$DEEPSQUARE_SHARED_WORLD_TMP :/deepsquare/world-tmp:rw,$DEEPSQUARE_DISK_TMP :/deepsquare/disk/tmp:rw,$DEEPSQUARE_DISK_WORLD_TMP :/deepsquare/disk/world-tmp:rw"
200201# shellcheck disable=SC2097,SC2098,SC1078
@@ -219,6 +220,7 @@ DEEPSQUARE_ENV="/deepsquare/$(basename $DEEPSQUARE_ENV)" /usr/bin/srun --job-nam
219220 --contain \
220221 --writable-tmpfs \
221222 --nv \
223+ --pwd " /" \
222224 " $IMAGE_PATH " \
223225 /bin/sh -c ' id'
224226/usr/bin/echo ' Running: ' ' as 1337'
0 commit comments