Skip to content

Instantly share code, notes, and snippets.

@dance2die
Last active September 28, 2019 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dance2die/949189aeda689828203ab9b256d3c829 to your computer and use it in GitHub Desktop.
Save dance2die/949189aeda689828203ab9b256d3c829 to your computer and use it in GitHub Desktop.
# install docker
wget -nv -O - https://get.docker.com/ | sh
# setup dokku apt repository
-wget -nv -O - https://packagecloud.io/dokku/dokku/gpgkey | apt-key add -
+wget -nv -O - https://packagecloud.io/dokku/dokku/gpgkey | sudo apt-key add -
export SOURCE="https://packagecloud.io/dokku/dokku/ubuntu/"
export OS_ID="$(lsb_release -cs 2>/dev/null || echo "trusty")"
echo "utopicvividwilyxenialyakketyzestyartfulbionic" | grep -q "$OS_ID" || OS_ID="trusty"
-echo "deb $SOURCE $OS_ID main" | tee /etc/apt/sources.list.d/dokku.list
+echo "deb $SOURCE $OS_ID main" | sudo tee /etc/apt/sources.list.d/dokku.list
-apt-get update
+sudo apt-get update
# install dokku
-sudo apt-get install dokku
+sudo apt-get install dokku
-sudo dokku plugin:install-dependencies --core # run with root!
+sudo dokku plugin:install-dependencies --core # run with root!
# go to your server's IP and follow the web installer
# install docker
wget -nv -O - https://get.docker.com/ | sh
# setup dokku apt repository
wget -nv -O - https://packagecloud.io/dokku/dokku/gpgkey | sudo apt-key add -
export SOURCE="https://packagecloud.io/dokku/dokku/ubuntu/"
export OS_ID="$(lsb_release -cs 2>/dev/null || echo "trusty")"
echo "utopicvividwilyxenialyakketyzestyartfulbionic" | grep -q "$OS_ID" || OS_ID="trusty"
echo "deb $SOURCE $OS_ID main" | sudo tee /etc/apt/sources.list.d/dokku.list
sudo apt-get update
# install dokku
sudo apt-get install dokku
sudo dokku plugin:install-dependencies --core # run with root!
# go to your server's IP and follow the web installer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment