Skip to content

Commit

Permalink
Fix cache location as it seems to be used regardless of disabling the…
Browse files Browse the repository at this point in the history
… cache
  • Loading branch information
AdamSimpson committed Feb 1, 2018
1 parent 6d5d338 commit 8069272
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Builder/scripts/docker-builder-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ docker ${DEBUG_FLAG} build -t localhost:5000/docker_image .
docker ${DEBUG_FLAG} push localhost:5000/docker_image

# Build the singularity container from the docker image
export SINGULARITY_DISABLE_CACHE=True
export SINGULARITY_CACHEDIR=/home/builder/.singularity
singularity ${DEBUG_FLAG} pull --name container.simg docker://localhost:5000/docker_image
2 changes: 1 addition & 1 deletion Builder/scripts/singularity-builder-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ if [[ ${GREP_RC} -eq 0 ]] ; then
export SINGULARITY_DOCKER_PASSWORD=${DOCKERHUB_READONLY_TOKEN}
fi

export SINGULARITY_DISABLE_CACHE=True
export SINGULARITY_CACHEDIR=/home/builder/.singularity
/usr/bin/unbuffer /usr/local/bin/singularity ${DEBUG_FLAG} build ./container.simg ./container.def

0 comments on commit 8069272

Please sign in to comment.