Files
dokku/bootstrap.sh
unclejack 4634bf68b2 install kernel & python-software-properties separately
The bootstrap script was installing software-properties-common.
The package which contains add-apt-repository is:
python-software-properties

$ apt-file search add-apt-repository
python-software-properties: /usr/bin/add-apt-repository

The kernel failed to install for me in vagrant, so that step should be
done separately to not break the install. The system might already have
a kernel which is fully docker compatible.
2013-06-21 10:50:03 +03:00

26 lines
872 B
Bash

DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
DOKKU_STACK=${DOKKU_STACK:-"https://s3.amazonaws.com/progrium-dokku/progrium_buildstep.tgz"}
apt-get install -y linux-image-extra-`uname -r`
apt-get install -y python-software-properties
add-apt-repository -y ppa:dotcloud/lxc-docker
apt-get update && apt-get install -y lxc-docker git ruby nginx make dnsutils
cd ~ && git clone ${DOKKU_REPO}
cd dokku && make install
if [[ $DOKKU_STACK ]]; then
curl "$DOKKU_STACK" | gunzip -cd | docker import - progrium/buildstep
else
cd buildstep && make build
fi
/etc/init.d/nginx start
start nginx-reloader
[[ $(dig +short $HOSTNAME) ]] && HOSTFILE=DOMAIN || HOSTFILE=HOSTNAME
echo $HOSTNAME > /home/git/$HOSTFILE
echo
echo "Be sure to upload a public key for your user:"
echo " cat ~/.ssh/id_rsa.pub | ssh root@$HOSTNAME \"gitreceive upload-key progrium\""