NGINX Plus CICD Demo
A CICD demo for NGINX Plus. Just add licenses
Requirements
- A build server (Gitlab Runner) with docker and Crossplane installed
- Gitlab repository mirroring to this repo with the Gitlab Container Registry for your project enabled
- Gitlab CICD continuous integration service
Instructions
- Place the following files in the directories of your build server
- Retrieve your NGINX Plus Key and Certificate from the NGINX customer portal or from an activated evaluation, and copy the
nginx-repo.crt
andnginx-repo.crt
files intoetc/ssl/nginx/
- Retrieve your NGINX Plus Key and Certificate from the NGINX customer portal or from an activated evaluation, and copy the
- Automate a CICD pipeline using gitlab. A example gitlab CI/CD pipeline file (
.gitlab-ci.yml
) is provided. - Modify the
Dockerfile
as necessary, e.g. To install addtional NGINX Plus Dynamic modules. Place your own NGINX Plus configurations intoetc/nginx/
, including files in sub directories: i.e.etc/nginx/conf.d
andetc/nginx/stream.conf.d
Demos
- Clone repo to local machine
- Demonstrate a configuration change in the NGINX config or change in the Web App. E.g. Search and replace
iphone_7.png
withiphone_x.png
. Change and revert as needed - Commit and push changes to code repository:
git commit .; git commit -m "change description"; git push origin master
- Watch the build process in realtime on Gitlab
TODO:
- Extend the CICD pipeline to deploy NGINX i.e. "Production"