comment bootstrap sections, fix hostname variable, a readme

This commit is contained in:
Jeff Lindsay committed 2013-06-08 03:48:13 -07:00
1 parent 26543540c9
commit bc278b87c1
2 files changed
+17 -4

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
# Dokku
Docker powered mini-Heroku. The smallest PaaS implementation you've ever seen.
## Requirements
Assumes Ubuntu 13 right now. Ideally name the host so it gets/has a hostname of a domain you have pointing to it.
## Installing
$ wget -qO- j.mp/dokku-bootstrap | bash
+6 -4
View File
@@ -1,3 +1,4 @@
# Docker and base dependencies
apt-get install -y linux-image-extra-`uname -r` apt-get install -y linux-image-extra-`uname -r`
apt-get install -y software-properties-common apt-get install -y software-properties-common
add-apt-repository -y ppa:dotcloud/lxc-docker add-apt-repository -y ppa:dotcloud/lxc-docker
@@ -5,28 +6,29 @@ 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
# gitreceive
cd /usr/local/bin cd /usr/local/bin
wget https://raw.github.com/progrium/gitreceive/master/gitreceive wget https://raw.github.com/progrium/gitreceive/master/gitreceive
chmod +x gitreceive chmod +x gitreceive
gitreceive init gitreceive init
# buildstep
cd ~ cd ~
git clone https://github.com/progrium/buildstep.git git clone https://github.com/progrium/buildstep.git
cd buildstep cd buildstep
cp buildstep /home/git/buildstep cp buildstep /home/git/buildstep
make make
# dokku (this!)
cd ~ cd ~
git clone https://github.com/progrium/dokku.git git clone https://github.com/progrium/dokku.git
cd dokku cd dokku
cp receiver /home/git/receiver cp receiver /home/git/receiver
cp nginx-app-conf /home/git/nginx-app-conf cp nginx-app-conf /home/git/nginx-app-conf
cp nginx-reloader.conf /etc/init/nginx-reloader.conf cp nginx-reloader.conf /etc/init/nginx-reloader.conf
stop nginx-reloader
start nginx-reloader start nginx-reloader
echo $HOSTNAME > /home/git/DOMAIN echo $HOSTNAME > /home/git/DOMAIN
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\""