Use pre-built buildstep image from s3. Add option to build your own.
This commit is contained in:
5
Makefile
5
Makefile
@@ -2,6 +2,7 @@ GITRECEIVE_URL ?= https://raw.github.com/progrium/gitreceive/master/gitreceive
|
||||
SSHCOMMAND_URL ?= https://raw.github.com/progrium/sshcommand/master/sshcommand
|
||||
PLUGINHOOK_URL ?= https://s3.amazonaws.com/progrium-pluginhook/pluginhook_0.1.0_amd64.deb
|
||||
STACK_URL ?= github.com/progrium/buildstep
|
||||
PREBUILT_STACK_URL ?= https://s3.amazonaws.com/progrium-dokku/progrium_buildstep_c30652f59a.tgz
|
||||
|
||||
all: dependencies stack install plugins
|
||||
|
||||
@@ -44,7 +45,11 @@ aufs:
|
||||
lsmod | grep aufs || modprobe aufs || apt-get install -y linux-image-extra-`uname -r`
|
||||
|
||||
stack:
|
||||
ifdef BUILD_STACK
|
||||
@docker images | grep progrium/buildstep || docker build -t progrium/buildstep ${STACK_URL}
|
||||
else
|
||||
@docker images | grep progrium/buildstep || curl ${PREBUILT_STACK_URL} | gunzip -cd | docker import - progrium/buildstep
|
||||
endif
|
||||
|
||||
count:
|
||||
@echo "Core lines:"
|
||||
|
||||
Reference in New Issue
Block a user