Merge pull request #2654 from ebeigarts/rpm-enable-docker-nginx

Enable nginx and docker on system startup when using bootstrap.sh on CentOS
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2017-03-23 13:42:45 -06:00
commit 1f5e5e5c14
2 files changed
+12 -3

No files matched your search

+4
View File
@@ -167,6 +167,10 @@ install-dokku-from-rpm-package() {
yum -y install herokuish dokku yum -y install herokuish dokku
fi fi
echo "--> Enabling docker and nginx on system startup"
systemctl enable docker
systemctl enable nginx
echo "--> Starting nginx" echo "--> Starting nginx"
systemctl start nginx systemctl start nginx
} }
+8 -3
View File
@@ -7,16 +7,21 @@
Dokku defaults to being installed via RPM package on CentOS 7. 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: Dokku defaults to being installed via RPM package on CentOS 7. 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:
```shell ```shell
# install docker # Install docker
curl -fsSL https://get.docker.com/ | sh curl -fsSL https://get.docker.com/ | sh
# install epel for nginx packages to be available # Install epel for nginx packages to be available
sudo yum install -y epel-release sudo yum install -y epel-release
# install dokku # Install dokku
curl -s https://packagecloud.io/install/repositories/dokku/dokku/script.rpm.sh | sudo bash curl -s https://packagecloud.io/install/repositories/dokku/dokku/script.rpm.sh | sudo bash
sudo yum install -y herokuish dokku sudo yum install -y herokuish dokku
sudo dokku plugin:install-dependencies --core sudo dokku plugin:install-dependencies --core
systemctl start nginx
# Enable docker and nginx on system startup
systemctl enable docker
systemctl enable nginx
``` ```
The [devicemapper](https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/) is the default Docker storage driver on CentOS 7 and defaults to a configuration mode known as `loop-lvm`. This mode is designed to work out-of-the-box with no additional configuration. However, production deployments should not run under `loop-lvm` mode. The preferred configuration for production deployments is [`direct-lvm`](https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/#/configure-direct-lvm-mode-for-production). The [devicemapper](https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/) is the default Docker storage driver on CentOS 7 and defaults to a configuration mode known as `loop-lvm`. This mode is designed to work out-of-the-box with no additional configuration. However, production deployments should not run under `loop-lvm` mode. The preferred configuration for production deployments is [`direct-lvm`](https://docs.docker.com/engine/userguide/storagedriver/device-mapper-driver/#/configure-direct-lvm-mode-for-production).