2013-10-29 17:13:02 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
set -eo pipefail
|
2013-07-02 03:12:43 -05:00
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
export DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
|
2013-06-09 16:08:35 -07:00
|
|
|
|
2013-09-20 16:05:43 +02:00
|
|
|
if ! which apt-get &>/dev/null
|
|
|
|
|
then
|
2013-11-20 23:39:09 +00:00
|
|
|
echo "This installation script requires apt-get. For manual installation instructions, consult https://github.com/progrium/dokku ."
|
|
|
|
|
exit 1
|
2013-09-20 16:05:43 +02:00
|
|
|
fi
|
|
|
|
|
|
2013-07-02 03:12:43 -05:00
|
|
|
apt-get update
|
2013-08-24 11:21:55 -07:00
|
|
|
apt-get install -y git make curl software-properties-common
|
2013-06-30 08:50:10 -05:00
|
|
|
|
2013-11-27 00:53:31 +01:00
|
|
|
[[ `lsb_release -sr` == "12.04" ]] && apt-get install -y python-software-properties
|
|
|
|
|
|
2013-07-02 03:12:43 -05:00
|
|
|
cd ~ && test -d dokku || git clone $DOKKU_REPO
|
2013-11-20 23:39:09 +00:00
|
|
|
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
|
|
|
|
2013-06-09 20:41:09 -07:00
|
|
|
echo
|
2013-10-29 17:13:02 -05:00
|
|
|
echo "Almost done! For next steps on configuration:"
|
|
|
|
|
echo " https://github.com/progrium/dokku#configuring"
|