Skip to content

Instantly share code, notes, and snippets.

@akluth
Created July 24, 2019 14:06
Show Gist options
  • Save akluth/683838bc5b2a992d3ddb452204c5c5df to your computer and use it in GitHub Desktop.
Save akluth/683838bc5b2a992d3ddb452204c5c5df to your computer and use it in GitHub Desktop.
# install prerequisites
sudo apt-get update -qq >/dev/null
sudo apt-get install -qq -y apt-transport-https
# install docker
wget -nv -O - https://get.docker.com/ | sh
# install dokku
wget -nv -O - https://packagecloud.io/dokku/dokku/gpgkey | apt-key add -
OS_ID="$(lsb_release -cs 2>/dev/null || echo "trusty")"
echo "trusty utopic vivid wily xenial yakkety zesty artful bionic" | grep -q "$OS_ID" || OS_ID="trusty"
echo "deb https://packagecloud.io/dokku/dokku/ubuntu/ ${OS_ID} main" | sudo tee /etc/apt/sources.list.d/dokku.list
sudo apt-get update -qq >/dev/null
sudo apt-get install -qq -y dokku
sudo dokku plugin:install-dependencies --core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment