Files
dokku/bootstrap.sh

38 lines
1.1 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
2014-06-25 18:11:49 -04:00
# A script to bootstrap dokku.
# It expects to be run on Ubuntu 14.04 via 'sudo'
# It checks out the dokku source code from Github into ~/dokku and then runs 'make install' from dokku source.
set -eo pipefail
export DEBIAN_FRONTEND=noninteractive
export DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
2013-06-09 16:08:35 -07:00
if ! command -v apt-get &>/dev/null
then
echo "This installation script requires apt-get. For manual installation instructions, consult http://progrium.viewdocs.io/dokku/advanced-installation ."
exit 1
fi
apt-get update
2015-03-25 02:51:29 -04:00
apt-get install -qq -y git make software-properties-common
2014-12-13 18:56:31 -08:00
[[ $(lsb_release -sr) == "12.04" ]] && apt-get install -qq -y python-software-properties
2014-12-13 18:56:31 -08:00
cd ~
test -d dokku || git clone $DOKKU_REPO
cd dokku
git fetch origin
if [[ -n $DOKKU_BRANCH ]]; then
git checkout origin/$DOKKU_BRANCH
elif [[ -n $DOKKU_TAG ]]; then
git checkout $DOKKU_TAG
fi
2013-10-15 22:49:56 +02:00
make install
2013-06-08 03:26:12 -07:00
echo
echo "Almost done! For next steps on configuration:"
echo " http://progrium.viewdocs.io/dokku/advanced-installation#user-content-configuring"