Skip to content

Commit

Permalink
Use build directly instead of pull, which seems to behave unexpectedly
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSimpson committed Feb 6, 2018
1 parent 37b2afc commit 4097fcb
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Builder/scripts/docker-builder-backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ mv ./container.def Dockerfile

# Build the singularity container from the docker image
export SINGULARITY_CACHEDIR=/home/builder/.singularity
export SINGULARITY_NOHTTPS=true
export SINGULARITY_NOHTTPS=true # Needed as we're pulling from localhost
export SINGULARITY_PULLFOLDER=/home/builder
/usr/bin/unbuffer /usr/bin/singularity ${DEBUG_FLAG} pull --name container.simg docker://localhost:5000/docker_image:latest

# Workaround for PULLFOLDER not being respected: https://github.com/singularityware/singularity/pull/855
if [ -e ${SINGULARITY_CACHEDIR}/container.simg ] ; then
mv ${SINGULARITY_CACHEDIR}/container.simg ./container.simg
fi
/usr/bin/unbuffer /usr/bin/singularity ${DEBUG_FLAG} build container.simg docker://localhost:5000/docker_image:latest

0 comments on commit 4097fcb

Please sign in to comment.