2013-06-30 08:29:40 -05:00
|
|
|
DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
|
2013-06-20 20:20:37 -07:00
|
|
|
DOKKU_STACK=${DOKKU_STACK:-"https://s3.amazonaws.com/progrium-dokku/progrium_buildstep.tgz"}
|
2013-06-30 08:50:10 -05:00
|
|
|
DOCKER_PKG=${DOCKER_PKG:-"https://launchpad.net/~dotcloud/+archive/lxc-docker/+files/lxc-docker_0.4.2-1_amd64.deb"}
|
2013-06-23 01:05:59 -07:00
|
|
|
set -e
|
2013-06-09 16:08:35 -07:00
|
|
|
|
2013-06-23 01:05:59 -07:00
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y linux-image-extra-`uname -r`
|
2013-06-30 10:37:32 -05:00
|
|
|
apt-get update && apt-get install -y git make curl
|
2013-06-30 08:50:10 -05:00
|
|
|
|
|
|
|
|
wget -qO- "$DOCKER_PKG" > /tmp/lxc-docker_0.4.2-1_amd64.deb
|
|
|
|
|
dpkg --force-depends -i /tmp/lxc-docker_0.4.2-1_amd64.deb && apt-get install -f -y
|
|
|
|
|
rm /tmp/lxc-docker_0.4.2-1_amd64.deb
|
2013-06-22 15:53:09 +01:00
|
|
|
|
2013-06-10 01:02:57 -07:00
|
|
|
cd ~ && git clone ${DOKKU_REPO}
|
2013-06-30 08:29:40 -05:00
|
|
|
cd dokku && make install
|
2013-06-30 08:04:50 -05:00
|
|
|
|
2013-06-30 01:17:32 -05:00
|
|
|
curl "$DOKKU_STACK" | gunzip -cd | docker import - progrium/buildstep
|
2013-06-08 03:26:12 -07:00
|
|
|
|
2013-06-30 11:02:40 -05:00
|
|
|
PLUGIN_PATH=/var/lib/dokku/plugins
|
2013-06-30 10:37:32 -05:00
|
|
|
pluginhook install
|
2013-06-08 03:58:59 -07:00
|
|
|
|
2013-06-09 20:41:09 -07:00
|
|
|
echo
|
2013-06-08 03:26:12 -07:00
|
|
|
echo "Be sure to upload a public key for your user:"
|
2013-06-21 09:06:30 +12:00
|
|
|
echo " cat ~/.ssh/id_rsa.pub | ssh root@$HOSTNAME \"gitreceive upload-key progrium\""
|