Files
dokku/docs/getting-started/install/debian.md
Adam Wolf 7f2cbed0c2 Add missing bootstrap.sh step
The debian/non-bootstrap.sh instructions were missing the plugin dependencies installer step.
2015-10-23 12:54:58 -05:00

2.1 KiB

Debian Package Installation Notes

As of 0.3.18, dokku defaults to being installed via debian package. While certain hosts may require extra work to get running, you may optionally wish to automate the installation of dokku without the use of our bootstrap.sh bash script. The following are the steps run by said script:

# install prerequisites
sudo apt-get update -qq > /dev/null
sudo apt-get install -qq -y apt-transport-https curl

# install docker
curl -sSL https://get.docker.com/ | sh

# install dokku
curl -sSL https://packagecloud.io/gpg.key | apt-key add -
echo "deb https://packagecloud.io/dokku/dokku/ubuntu/ trusty main" | sudo tee /etc/apt/sources.list.d/dokku.list
sudo apt-get update -qq > /dev/null
sudo apt-get install dokku
sudo dokku plugin:install-dependencies --core

Unattended installation

In case you want to perform an unattended installation of dokku, this is made possible through debconf, which allows you to configure a package before installing it.

You can set any of the below options through the debconf-set-selections command, for example to enable vhost-based deployments:

sudo echo "dokku dokku/vhost_enable boolean true" | debconf-set-selections

After setting the desired options, proceed with the installation as described above.

debconf options

Name Type Default Description
dokku/web_config boolean true Use web-based config for below options
dokku/vhost_enable boolean false Use vhost-based deployments (e.g. .dokku.me)
dokku/hostname string dokku.me Hostname, used as vhost domain and for showing app URL after deploy
dokku/key_file string /root/.ssh/id_rsa.pub SSH key to add to the Dokku user (Will be ignored on dpkg-reconfigure)