Create dockerized Nginx server with GitHub webhook deployment triggering using Jenkins pipelines (Jenkinsfile).
Stages:
-
Build. Compile the latest version of Nginx server with a lua-nginx-module.
-
Dockerize. Create a docker image with adding custom nginx.conf and index.html from the repository files. Push docker image to the public Docker registry.
-
Deploy. Deploy Nginx container on EC2 instance using docker-machine.