Skip to content

Commit af5041d

Browse files
authored
Merge pull request Xilinx#1380 from gabrielrodcanal/fix_singularity
Fix script to launch Singularity container
2 parents 9d29968 + f32c3a5 commit af5041d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

run-docker.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,12 @@ if [ -z "$FINN_SINGULARITY" ];then
272272
else
273273
SINGULARITY_BASE="singularity exec"
274274
# Replace command options for Singularity
275-
SINGULARITY_EXEC="${DOCKER_EXEC//"-e "/"--env "}"
276-
SINGULARITY_EXEC="${SINGULARITY_EXEC//"-v "/"-B "}"
277-
SINGULARITY_EXEC="${SINGULARITY_EXEC//"-w "/"--pwd "}"
275+
SINGULARITY_EXEC="${DOCKER_EXEC//-e /--env }"
276+
SINGULARITY_EXEC="${SINGULARITY_EXEC//-v /-B }"
277+
SINGULARITY_EXEC="${SINGULARITY_EXEC//-w /--pwd }"
278278
CMD_TO_RUN="$SINGULARITY_BASE $SINGULARITY_EXEC $FINN_SINGULARITY /usr/local/bin/finn_entrypoint.sh $DOCKER_CMD"
279279
gecho "FINN_SINGULARITY is set, launching Singularity container instead of Docker"
280280
fi
281281

282+
echo $CMD_TO_RUN
282283
$CMD_TO_RUN

0 commit comments

Comments
 (0)