only execute build stack if we have access to /var/run/docker.sock. closes #929

This commit is contained in:
Michael Hobbs committed 2015-02-02 15:46:57 -08:00
1 parent 2dad1afa57
commit 14bff0679f
1 file changed
+2
+2
View File
@@ -95,12 +95,14 @@ ifndef CI
endif endif
stack: stack:
ifeq ($(shell test -e /var/run/docker.sock && touch -a -c /var/run/docker.sock && echo $$?),0)
@echo "Start building buildstep" @echo "Start building buildstep"
ifdef BUILD_STACK ifdef BUILD_STACK
@docker images | grep progrium/buildstep || (git clone ${STACK_URL} /tmp/buildstep && docker build -t progrium/buildstep /tmp/buildstep && rm -rf /tmp/buildstep) @docker images | grep progrium/buildstep || (git clone ${STACK_URL} /tmp/buildstep && docker build -t progrium/buildstep /tmp/buildstep && rm -rf /tmp/buildstep)
else else
@docker images | grep progrium/buildstep || curl --silent -L ${PREBUILT_STACK_URL} | gunzip -cd | docker import - progrium/buildstep @docker images | grep progrium/buildstep || curl --silent -L ${PREBUILT_STACK_URL} | gunzip -cd | docker import - progrium/buildstep
endif endif
endif
count: count:
@echo "Core lines:" @echo "Core lines:"