Skip to content

Commit

Permalink
Test apptainer cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
fpjentzsch committed Nov 23, 2023
1 parent abf0c5d commit eb2dcb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/singularity-quicktest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
# remove-dotnet: 'true'
- name: Check docker images
run: docker images
- name: Check docker containers
run: docker ps -a
- name: Prune docker images
run: docker image prune -a -f
- name: Check docker images
Expand Down Expand Up @@ -63,18 +61,22 @@ jobs:
echo $PWD
echo $HOME
echo $APPTAINER_TMPDIR
echo $APPTAINER_CACHEDIR
echo $TMPDIR
- name: Build Singularity image
run: |
mkdir $PWD/singularity_tmp
mkdir $PWD/singularity_cache
export APPTAINER_TMPDIR=$PWD/singularity_tmp
export APPTAINER_CACHEDIR=$PWD/singularity_cache
singularity build finn_singularity_image.sif docker-daemon://finn_docker_export:latest
continue-on-error: true
- name: Check free space
run: df -h
- name: Run quicktest
run: |
export APPTAINER_TMPDIR=$PWD/singularity_tmp
export APPTAINER_CACHEDIR=$PWD/singularity_cache
export FINN_SINGULARITY=finn_singularity_image.sif
./run-docker.sh quicktest
- name: Check free space
Expand Down
1 change: 1 addition & 0 deletions run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ else
SINGULARITY_EXEC="${SINGULARITY_EXEC//"-v "/"-B "}"
SINGULARITY_EXEC="${SINGULARITY_EXEC//"-w "/"--pwd "}"
CMD_TO_RUN="$SINGULARITY_BASE $SINGULARITY_EXEC $FINN_SINGULARITY /usr/local/bin/finn_entrypoint.sh $DOCKER_CMD"
gecho "FINN_SINGULARITY is set, launching Singularity container instead of Docker"
fi

$CMD_TO_RUN

0 comments on commit eb2dcb5

Please sign in to comment.