Sign inSign up

sumit0058/springbootwebapp

By sumit0058

•Updated about 3 years ago

Image
0

130

sumit0058/springbootwebapp repository overview

⁠Spring-boot-webapp

This is a Sprint boot web application that has been built using Maven.

Follow the link for referrence: https://spring.io/guides/gs/spring-boot/⁠

One can use this project to run locally or using docker image and thus as a container and as well as in kubernetes cluster.

You can also find Jenkinsfile for the Jenkins pipeline where it is basically performing the below tasks

  • Building the docker image with build number
  • Building and testing the code by calling maven
  • Performing code analysis in sonarqube
  • Pushing the newly build docker image to docker hub
  • Updating the K8s manifests file with the unique build number
⁠Tools used in this proje
  • Git
  • Maven
  • Jenkins
  • Sonarqube
  • Docker
  • Kubernetes
  • Argo CD
⁠Instructions to run this project locally
  • Clone this project using the command
git clone https://github.com/sumitNITS/Spring-boot-webapp.git
  • Run the commands to get started with the application
mvn clean package
java -jar target/spring-boot-webapp.jar

Now visit the URL http://127.0.0.1:8081/⁠ and explore the application 🚀

⁠Instructions to run this project using dockerhub image
  • Access the application using the command
docker run -d -p <port>:8081 --name spring-boot-webapp sumit0058/springbootwebapp

Now access the application using "localhost":"port" OR "ip-of-machine":"port" 🚀

⁠Success outputs for this project

Dockerhub output

Sonarqube output

Jenkins Output

Argocd output

K8s deployment-minikube

Tag summary

Content type

Image

Digest

sha256:d6da04cc7…

Size

67.1 MB

Last updated

about 3 years ago

docker pull sumit0058/springbootwebapp