mirror of
https://github.com/dokku/dokku.git
synced 2025-12-28 16:06:40 +01:00
22 lines
655 B
Bash
22 lines
655 B
Bash
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
export DOKKU_REPO=${DOKKU_REPO:-"https://github.com/progrium/dokku.git"}
|
|
|
|
if ! which apt-get &>/dev/null
|
|
then
|
|
echo "This installation script requres apt-get. For manual installation instructions, consult https://github.com/progrium/dokku ."
|
|
exit 1
|
|
fi
|
|
|
|
apt-get update
|
|
apt-get install -y git make curl software-properties-common
|
|
|
|
cd ~ && test -d dokku || git clone $DOKKU_REPO
|
|
cd dokku && test $DOKKU_BRANCH && git checkout origin/$DOKKU_BRANCH || true
|
|
make install
|
|
|
|
echo
|
|
echo "Almost done! For next steps on configuration:"
|
|
echo " https://github.com/progrium/dokku#configuring"
|