Skip to content

katta/shopper

Repository files navigation

Spring boot applications with docker and kubernetes

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

Prerequisites

  • Install latest version of docker on the host
  • Docker hub is used as registry for containers
  • Expect the user to have run docker login on host to create docker auth config on host

Running jenkins

  • Run jenkins/build.sh to build jenkins image
  • Run jenkins/run.sh to run jenkins container
  • Open the url http://localhost:8080 in your browser
  • Enter the admin password which can be looked up by running docker logs -f jenkins
  • Install default plugins and finish admin setup

Creating shopper-build job in jenkins

  • Create a new job named 'shopper-build`
  • Use pipeline as 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.

What's done and what's not

  • 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

About

Spring boot applications with docker containers orchestrated by kubernetes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published