Skip to content

Instantly share code, notes, and snippets.

@akluth
Created July 24, 2019 14:06
Show Gist options
  • Select an option

  • Save akluth/683838bc5b2a992d3ddb452204c5c5df to your computer and use it in GitHub Desktop.

Select an option

Save akluth/683838bc5b2a992d3ddb452204c5c5df to your computer and use it in GitHub Desktop.

Revisions

  1. Alexander Kluth created this gist Jul 24, 2019.
    15 changes: 15 additions & 0 deletions no-bootstrap-dokku.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # 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