2013-06-11 20:16:07 -07:00
|
|
|
GITRECEIVE_URL = https://raw.github.com/progrium/gitreceive/master/gitreceive
|
|
|
|
|
SSHCOMMAND_URL = https://raw.github.com/progrium/sshcommand/master/sshcommand
|
2013-06-30 10:37:32 -05:00
|
|
|
PLUGINHOOK_URL = https://s3.amazonaws.com/progrium-pluginhook/pluginhook_0.1.0_amd64.deb
|
2013-06-09 23:26:56 -07:00
|
|
|
|
|
|
|
|
all: install
|
|
|
|
|
|
2013-07-01 11:38:38 +02:00
|
|
|
install: gitreceive sshcommand pluginhook copy
|
|
|
|
|
|
|
|
|
|
copy:
|
2013-06-15 15:02:44 -07:00
|
|
|
cp dokku /usr/local/bin/dokku
|
2013-06-09 23:26:56 -07:00
|
|
|
cp receiver /home/git/receiver
|
2013-06-30 11:02:40 -05:00
|
|
|
mkdir -p /var/lib/dokku/plugins
|
|
|
|
|
cp -r plugins/* /var/lib/dokku/plugins
|
2013-06-30 11:13:23 -05:00
|
|
|
PLUGIN_PATH=/var/lib/dokku/plugins pluginhook install
|
2013-06-10 01:02:57 -07:00
|
|
|
|
2013-06-11 20:16:07 -07:00
|
|
|
gitreceive:
|
2013-06-11 20:40:48 -07:00
|
|
|
wget -qO /usr/local/bin/gitreceive ${GITRECEIVE_URL}
|
2013-06-11 20:16:07 -07:00
|
|
|
chmod +x /usr/local/bin/gitreceive
|
2013-06-11 20:37:49 -07:00
|
|
|
gitreceive init
|
2013-06-11 20:16:07 -07:00
|
|
|
|
|
|
|
|
sshcommand:
|
2013-06-11 20:40:48 -07:00
|
|
|
wget -qO /usr/local/bin/sshcommand ${SSHCOMMAND_URL}
|
2013-06-11 20:16:07 -07:00
|
|
|
chmod +x /usr/local/bin/sshcommand
|
2013-06-23 01:04:56 -07:00
|
|
|
sshcommand create dokku /usr/local/bin/dokku
|
2013-06-11 20:16:07 -07:00
|
|
|
|
2013-06-30 10:37:32 -05:00
|
|
|
pluginhook:
|
2013-06-30 10:41:47 -05:00
|
|
|
wget -qO /tmp/pluginhook_0.1.0_amd64.deb ${PLUGINHOOK_URL}
|
2013-06-30 10:37:32 -05:00
|
|
|
cd /tmp && dpkg -i pluginhook_0.1.0_amd64.deb
|
|
|
|
|
|
2013-06-10 23:37:23 -07:00
|
|
|
count:
|
2013-06-30 17:56:02 -05:00
|
|
|
@echo "Core lines:"
|
|
|
|
|
@cat receiver dokku bootstrap.sh | wc -l
|
|
|
|
|
@echo "Plugin lines:"
|
|
|
|
|
@find plugins -type f | xargs cat | wc -l
|
|
|
|
|
@echo "Test lines:"
|
|
|
|
|
@find tests -type f | xargs cat | wc -l
|