boot is now an image setup script. receiver updated to work with gitreceive-next
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail
|
||||
|
||||
if [[ $3 == *dokku* ]]; then
|
||||
if [[ $2 == *dokku* ]]; then
|
||||
mkdir $HOME/build
|
||||
cd $HOME/build
|
||||
tar -xf -
|
||||
@@ -12,7 +12,7 @@ if [[ $3 == *dokku* ]]; then
|
||||
echo "-----> Generating keypair..."
|
||||
ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ''
|
||||
echo "-----> Installing SSH public key..."
|
||||
cat ~/.ssh/id_rsa.pub | sudo sshcommand acl-add dokku test
|
||||
cat $HOME/.ssh/id_rsa.pub | sudo sshcommand acl-add dokku test
|
||||
echo "-----> Intitial SSH connection to populate known_hosts..."
|
||||
ssh -o StrictHostKeyChecking=no dokku@dokku.me help
|
||||
echo "-----> Running tests"
|
||||
|
||||
@@ -14,9 +14,6 @@ export GOPATH=/root/go
|
||||
git clone https://github.com/flynn/gitreceive-next.git
|
||||
cd gitreceive-next && make install
|
||||
|
||||
curl https://raw.github.com/progrium/dokku/master/tests/ci/receiver -s > /tmp/receiver
|
||||
chmod +x /tmp/receiver
|
||||
|
||||
ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ''
|
||||
|
||||
cat<<EOF > /etc/init/gitreceived.conf
|
||||
@@ -24,4 +21,7 @@ start on runlevel [2345]
|
||||
exec /usr/local/bin/gitreceived -p 2022 -n /root/.ssh/id_rsa /tmp/receiver
|
||||
EOF
|
||||
|
||||
start gitreceived
|
||||
cat<<EOF > /etc/rc.local
|
||||
curl https://raw.github.com/progrium/dokku/master/tests/ci/receiver -s > /tmp/receiver
|
||||
chmod +x /tmp/receiver
|
||||
EOF
|
||||
Reference in New Issue
Block a user