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:"
|
||||
|
||||
12
README.md
12
README.md
@@ -120,6 +120,18 @@ your own clone of dokku using the DOKKU_REPO environment variable. Example:
|
||||
$ chmod +x bootstrap.sh
|
||||
$ sudo DOKKU_REPO=https://github.com/yourusername/dokku.git ./bootstrap.sh
|
||||
|
||||
## Advanced installation (custom buildstep build)
|
||||
|
||||
Dokku ships with a pre-built version of version of the [buildstep] component by
|
||||
default. If you want to build your own version you can specify that with an env
|
||||
variable.
|
||||
|
||||
$ git clone https://github.com/progrium/dokku.git
|
||||
$ cd dokku
|
||||
$ sudo BUILD_STACK=true make all
|
||||
|
||||
[buildstep]: https://github.com/progrium/buildstep
|
||||
|
||||
## Upgrading
|
||||
|
||||
Dokku is in active development. You can update the deployment step and the build step separately.
|
||||
|
||||
Reference in New Issue
Block a user