CICD Pipeline using Jenkins & ArgoCD
  • About the project
  • Overview of the application
  • Dockerizing the application
  • Configure EC2 instance to setup the CI pipeline
  • Configure Jenkins on EC2 instance
  • Create Jenkins CI pipeline
  • Setting up SonarQube server
  • Configure DockerHub and GitHub access tokens inside Jenkins
  • Add GitHub Webhook trigger
  • Execute the Jenkins Build
  • Configure EC2 instance to setup the CD pipeline
  • Install MiniKube and Kubectl
  • Install ArgoCD
  • Deploy the app to Kubernetes using ArgoCD
Powered by GitBook
On this page
  • Code Repository URL
  • Execute the application locally

Overview of the application

PreviousAbout the projectNextDockerizing the application

Last updated 1 year ago

This is a simple Sprint Boot based Java application that is built using Maven. Sprint Boot dependencies are handled using the pom.xml at the root directory of the repository.

This is a MVC architecture based application where controller returns a page with title and message attributes to the view.

Code Repository URL

The repository for the application can be accessed from the following URL:

This is what the application looks like:

Execute the application locally

To execute the application locally, follow the below steps:

Clone the repository and move to the code directory:

git clone https://github.com/devops-maestro17/java-cicd-pipeline
cd java-cicd-pipeline/spring-boot-app

Install JDK and Maven

sudo apt update

# Install Maven
sudo apt install maven

# Install JDK
sudo apt install openjdk-11-jre -y

Execute the Maven targets to generate the jar artifacts:

mvn clean package

Run the application using the below command and access it on port 8080:

java -jar target/spring-boot-web.jar
LogoGitHub - devops-maestro17/java-cicd-pipelineGitHub