This repository demonstrates the complete CI/CD of spring boot applications running as docker containers and deployed on to kubernetes cluster.
Please note this is work in progress
- Install latest version of docker on the host
- Docker hub is used as registry for containers
- Expect the user to have run
docker loginon host to create docker auth config on host
- Run
jenkins/build.shto build jenkins image - Run
jenkins/run.shto run jenkins container - Open the url
http://localhost:8080in your browser - Enter the admin password which can be looked up by running
docker logs -f jenkins - Install default plugins and finish admin setup
- Create a new job named 'shopper-build`
- Use
pipelineas the job template - Configure the SCM to be pulled source from the build script as Jenkins file from SCM(github.com)
You are good to go. On successful builds, images gets pushed to your dockerhub account.
- Integrating multiple services
- Usage of config maps
- Usage of external services like Database or AMQ
- Usage of secrets (Mongodb credentials and AMQ credentials)
- Automated deployment on to k8s cluster
- Accessing services via ingress LB
- Demonstrate blue green deployment