kmjones1979 / appster

A demo CI pipeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NGINX Plus CICD Demo

A CICD demo for NGINX Plus. Just add licenses

Requirements

  1. A build server (Gitlab Runner) with docker and Crossplane installed
  2. Gitlab repository mirroring to this repo with the Gitlab Container Registry for your project enabled
  3. Gitlab CICD continuous integration service

Instructions

  1. 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 and nginx-repo.crt files into etc/ssl/nginx/
  2. Automate a CICD pipeline using gitlab. A example gitlab CI/CD pipeline file (.gitlab-ci.yml) is provided.
  3. Modify the Dockerfile as necessary, e.g. To install addtional NGINX Plus Dynamic modules. Place your own NGINX Plus configurations into etc/nginx/, including files in sub directories: i.e. etc/nginx/conf.d and etc/nginx/stream.conf.d

Demos

  1. Clone repo to local machine
  2. Demonstrate a configuration change in the NGINX config or change in the Web App. E.g. Search and replace iphone_7.png with iphone_x.png. Change and revert as needed
  3. Commit and push changes to code repository:
git commit .; git commit -m "change description"; git push origin master
  1. Watch the build process in realtime on Gitlab

TODO:

  • Extend the CICD pipeline to deploy NGINX i.e. "Production"

About

A demo CI pipeline


Languages

Language:CSS 57.2%Language:HTML 37.1%Language:Dockerfile 3.9%Language:JavaScript 1.9%