going back because its faster to build the container
This commit is contained in:
23
bootstrap.sh
23
bootstrap.sh
@@ -1,9 +1,8 @@
|
|||||||
# Source locations - set environment variables to override defaults
|
# Repository locations - set environment variables to override defaults
|
||||||
# e.g. DOKKU_REPO=https://github.com/yourusername/dokku.git bootstrap.sh
|
# e.g. DOKKU_REPO=https://github.com/yourusername/dokku.git bootstrap.sh
|
||||||
DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
|
|
||||||
GITRECEIVE_URL=${GITRECEIVE_URL:-"https://raw.github.com/progrium/gitreceive/master/gitreceive"}
|
GITRECEIVE_URL=${GITRECEIVE_URL:-"https://raw.github.com/progrium/gitreceive/master/gitreceive"}
|
||||||
BUILDSTEP_URL=${BUILDSTEP_URL:-"https://raw.github.com/progrium/buildstep/master/buildstep"}
|
BUILDSTEP_REPO=${BUILDSTEP_REPO:-"https://github.com/progrium/buildstep.git"}
|
||||||
BUILDSTEP_CONTAINER=${BUILDSTEP_CONTAINER:-"progrium/buildstep"}
|
DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
|
||||||
|
|
||||||
# Docker and base dependencies
|
# Docker and base dependencies
|
||||||
apt-get install -y linux-image-extra-`uname -r`
|
apt-get install -y linux-image-extra-`uname -r`
|
||||||
@@ -13,19 +12,18 @@ apt-get update
|
|||||||
apt-get install -y lxc-docker
|
apt-get install -y lxc-docker
|
||||||
apt-get install -y git ruby nginx make
|
apt-get install -y git ruby nginx make
|
||||||
|
|
||||||
# install and init gitreceive
|
# gitreceive
|
||||||
cd /usr/local/bin
|
cd /usr/local/bin
|
||||||
wget ${GITRECEIVE_URL}
|
wget ${GITRECEIVE_URL}
|
||||||
chmod +x gitreceive
|
chmod +x gitreceive
|
||||||
gitreceive init
|
gitreceive init
|
||||||
|
|
||||||
# install buildstep script
|
# buildstep
|
||||||
cd /home/git
|
cd ~
|
||||||
wget ${BUILDSTEP_URL}
|
git clone ${BUILDSTEP_REPO}
|
||||||
chmod +x buildstep
|
cd buildstep
|
||||||
|
cp buildstep /home/git/buildstep
|
||||||
# fetch prebuilt buildstep container
|
make
|
||||||
docker pull ${BUILDSTEP_CONTAINER}
|
|
||||||
|
|
||||||
# dokku (this!)
|
# dokku (this!)
|
||||||
cd ~
|
cd ~
|
||||||
@@ -43,5 +41,6 @@ echo $HOSTNAME > /home/git/DOMAIN
|
|||||||
echo "include /home/git/*/nginx.conf;" > /etc/nginx/conf.d/dokku.conf
|
echo "include /home/git/*/nginx.conf;" > /etc/nginx/conf.d/dokku.conf
|
||||||
/etc/init.d/nginx start
|
/etc/init.d/nginx start
|
||||||
|
|
||||||
|
echo
|
||||||
echo "Be sure to upload a public key for your user:"
|
echo "Be sure to upload a public key for your user:"
|
||||||
echo " cat ~/.ssh/id_rsa.pub | ssh root@$HOSTNAME \"gitreceive upload-key progrium\""
|
echo " cat ~/.ssh/id_rsa.pub | ssh root@$HOSTNAME \"gitreceive upload-key progrium\""
|
||||||
Reference in New Issue
Block a user