initial attempt at plugins

This commit is contained in:
Jeff Lindsay
2013-06-30 10:37:32 -05:00
parent c08f3233e9
commit 17953fc5a0
7 changed files with 55 additions and 21 deletions

View File

@@ -1,14 +1,14 @@
GITRECEIVE_URL = https://raw.github.com/progrium/gitreceive/master/gitreceive
SSHCOMMAND_URL = https://raw.github.com/progrium/sshcommand/master/sshcommand
PLUGINHOOK_URL = https://s3.amazonaws.com/progrium-pluginhook/pluginhook_0.1.0_amd64.deb
all: install
install: gitreceive sshcommand
install: gitreceive sshcommand pluginhook
cp dokku /usr/local/bin/dokku
cp receiver /home/git/receiver
cp nginx-app-conf /home/git/nginx-app-conf
cp nginx-reloader.conf /etc/init/nginx-reloader.conf
echo "include /home/git/*/nginx.conf;" > /etc/nginx/conf.d/dokku.conf
cp -r plugins /home/git/.plugins
gitreceive:
wget -qO /usr/local/bin/gitreceive ${GITRECEIVE_URL}
@@ -20,5 +20,9 @@ sshcommand:
chmod +x /usr/local/bin/sshcommand
sshcommand create dokku /usr/local/bin/dokku
pluginhook:
wget -qO ${PLUGINHOOK_URL} /tmp/pluginhook_0.1.0_amd64.deb
cd /tmp && dpkg -i pluginhook_0.1.0_amd64.deb
count:
cat receiver dokku bootstrap.sh nginx-app-conf nginx-reloader.conf | wc -l