This project has evolved from a job interview task, where I had to implement hello world app that may be containerized and deployed to a kubernetes along with metrics. App includes:
The app is being built after a commit is pushed to a Github repo. Webhook is issued to the Jenkins instance.
Jenkins runs an item "nodejs_blogapp" that runs a helloworld mocha test and triggers another item "deploy_nodejs_blogapp" that ssh'es to the baremetal machine using a preinstalled key and issues git pull and rebuilds the docker image.
The script filters the container ID by the tag name and removes it. New one is built instead. The connections are handled by the reverse proxy