This repository contains an example environment that implements the techniques described in the 2018 NGINXConf talk Using NGINX for release automation at The Atlantic (slides).
-
Run
git clone git@github.com:theatlantic/nginxconf-2018.git -
Enable wildcard DNS for *.nginxdemo by adding the DNS server 127.0.0.1:19321, or add to your /etc/hosts file:
127.0.0.1 jenkins.nginxdemo develop.djangobeta.nginxdemo plaid.djangobeta.nginxdemoIf you have setup docker networking to bind to a different ip address than localhost, replace
127.0.0.1with that ip address. -
Run
docker-compose up -
Visit http://jenkins.nginxdemo:8001/ in a web browser
-
Login with the credentials user: admin, pass: admin
-
There should be an addons-server project. Navigate to it.
-
If the builds have failed (this can happen due to a race condition during startup), restart the builds.
-
After the branches have built, you can visit: