The docker folder holds the Dockerfile and a run.sh and build.sh script.
The build script basically fetches the helloworld.jar from the server and executes it in a non-root user context.
The run script shall be used for manually testing/deployment of this image.
The Jenkinsfile consists of the following stages and runs on a jenkins node with access to the kubernetes cluster via kubectl
- github checkout
- building the Docker image
- deploying the built image via kubernetes with 3 replicas
What is missing?
The entire first optional task of automating the highly available and load balanced cloud environment and kubernetes cluster creation is missing.
Almost the entire second optional tasks are missing, except the non-root user context for the Docker image.