moving gitreceiv into makefile with sshcommand
This commit is contained in:
1 parent
699e6623e0
commit
ad2fd7fb55
2 files changed
+14
-13
No files matched your search
@@ -1,7 +1,9 @@
|
|||||||
|
GITRECEIVE_URL = https://raw.github.com/progrium/gitreceive/master/gitreceive
|
||||||
|
SSHCOMMAND_URL = https://raw.github.com/progrium/sshcommand/master/sshcommand
|
||||||
|
|
||||||
all: install
|
all: install
|
||||||
|
|
||||||
install: submodule
|
install: submodule gitreceive sshcommand
|
||||||
cp receiver /home/git/receiver
|
cp receiver /home/git/receiver
|
||||||
cp deploystep /home/git/deploystep
|
cp deploystep /home/git/deploystep
|
||||||
cp buildstep/buildstep /home/git/buildstep
|
cp buildstep/buildstep /home/git/buildstep
|
||||||
@@ -12,5 +14,14 @@ submodule:
|
|||||||
git submodule init
|
git submodule init
|
||||||
git submodule update
|
git submodule update
|
||||||
|
|
||||||
|
gitreceive:
|
||||||
|
wget -O /usr/local/bin/gitreceive ${GITRECEIVE_URL}
|
||||||
|
chmod +x /usr/local/bin/gitreceive
|
||||||
|
[[ ! -d /home/git ]] && gitreceive init
|
||||||
|
|
||||||
|
sshcommand:
|
||||||
|
wget -O /usr/local/bin/sshcommand ${SSHCOMMAND_URL}
|
||||||
|
chmod +x /usr/local/bin/sshcommand
|
||||||
|
|
||||||
count:
|
count:
|
||||||
cat receiver deploystep bootstrap.sh nginx-app-conf nginx-reloader.conf | wc -l
|
cat receiver deploystep bootstrap.sh nginx-app-conf nginx-reloader.conf | wc -l
|
||||||
+2
-12
@@ -1,16 +1,9 @@
|
|||||||
# Repository locations - set environment variables to override defaults
|
|
||||||
# e.g. DOKKU_REPO=https://github.com/yourusername/dokku.git bootstrap.sh
|
|
||||||
GITRECEIVE_URL=${GITRECEIVE_URL:-"https://raw.github.com/progrium/gitreceive/master/gitreceive"}
|
|
||||||
DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
|
DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
|
||||||
|
|
||||||
apt-get install -y linux-image-extra-`uname -r` software-properties-common
|
apt-get install -y linux-image-extra-`uname -r` software-properties-common
|
||||||
add-apt-repository -y ppa:dotcloud/lxc-docker
|
add-apt-repository -y ppa:dotcloud/lxc-docker
|
||||||
apt-get update && apt-get install -y lxc-docker git ruby nginx make
|
apt-get update && apt-get install -y lxc-docker git ruby nginx make
|
||||||
|
|
||||||
wget -O /usr/local/bin/gitreceive ${GITRECEIVE_URL}
|
|
||||||
chmod +x /usr/local/bin/gitreceive
|
|
||||||
gitreceive init
|
|
||||||
|
|
||||||
cd ~ && git clone ${DOKKU_REPO}
|
cd ~ && git clone ${DOKKU_REPO}
|
||||||
cd dokku && make install
|
cd dokku && make install
|
||||||
cd buildstep && make build
|
cd buildstep && make build
|
||||||
@@ -19,11 +12,8 @@ start nginx-reloader
|
|||||||
/etc/init.d/nginx start
|
/etc/init.d/nginx start
|
||||||
|
|
||||||
echo "include /home/git/*/nginx.conf;" > /etc/nginx/conf.d/dokku.conf
|
echo "include /home/git/*/nginx.conf;" > /etc/nginx/conf.d/dokku.conf
|
||||||
if [[ $(dig +short $HOSTNAME) ]]; then
|
[[ $(dig +short $HOSTNAME) ]] && HOSTFILE=DOMAIN || HOSTFILE=HOSTNAME
|
||||||
echo $HOSTNAME > /home/git/DOMAIN
|
echo $HOSTNAME > /home/git/$HOSTFILE
|
||||||
else
|
|
||||||
echo $HOSTNAME > /home/git/HOSTNAME
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Be sure to upload a public key for your user:"
|
echo "Be sure to upload a public key for your user:"
|
||||||
|
|||||||
Reference in new issue
Block a user