remove build dir if exists. use absolute paths
This commit is contained in:
@@ -2,17 +2,18 @@
|
|||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
if [[ $2 == *dokku* ]]; then
|
if [[ $2 == *dokku* ]]; then
|
||||||
mkdir $HOME/build
|
rm -rf /tmp/build
|
||||||
cd $HOME/build
|
mkdir /tmp/build
|
||||||
|
cd /tmp/build
|
||||||
tar -xf -
|
tar -xf -
|
||||||
echo "-----> Installing dependencies"
|
echo "-----> Installing dependencies"
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y git make curl software-properties-common
|
DEBIAN_FRONTEND=noninteractive apt-get install -y git make curl software-properties-common
|
||||||
echo "-----> Running make install"
|
echo "-----> Running make install"
|
||||||
sudo DEBIAN_FRONTEND=noninteractive HOSTNAME=dokku.me make install
|
DEBIAN_FRONTEND=noninteractive HOSTNAME=dokku.me make install
|
||||||
echo "-----> Generating keypair..."
|
echo "-----> Generating keypair..."
|
||||||
ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ''
|
ssh-keygen -f /root/.ssh/id_rsa -t rsa -N ''
|
||||||
echo "-----> Installing SSH public key..."
|
echo "-----> Installing SSH public key..."
|
||||||
cat $HOME/.ssh/id_rsa.pub | sudo sshcommand acl-add dokku test
|
cat /root/.ssh/id_rsa.pub | sudo sshcommand acl-add dokku test
|
||||||
echo "-----> Intitial SSH connection to populate known_hosts..."
|
echo "-----> Intitial SSH connection to populate known_hosts..."
|
||||||
ssh -o StrictHostKeyChecking=no dokku@dokku.me help
|
ssh -o StrictHostKeyChecking=no dokku@dokku.me help
|
||||||
echo "-----> Running tests"
|
echo "-----> Running tests"
|
||||||
|
|||||||
Reference in New Issue
Block a user