Skip to content

Commit bea40a1

Browse files
committed
fix(sbatch): fix map uid test
1 parent f642238 commit bea40a1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

sbatch-service/fixtures/map-uid.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ declare -A EXIT_SIGNALS
7474
IMAGE_PATH="$STORAGE_PATH/$SLURM_JOB_ID-$(echo $RANDOM | md5sum | head -c 20).sif"
7575
export 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!"
7979
export 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
194195
IMAGE_PATH="$STORAGE_PATH/$SLURM_JOB_ID-$(echo $RANDOM | md5sum | head -c 20).sif"
195196
export 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!"
199200
export 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

Comments
 (0)