How bsnanda27/kaiburr-cicd works
Main Components
a. Source Code Repository: Represent the complete Java backend API code, housed under “task-1-java-backend-api” that includes the main application, controllers, models, repositories, and services.
b. CI/CD Pipeline: Break down the process into three major pipeline stages as indicated in the README:
• Build & Test: Involves Maven compiling, JDK 17 setup, and unit testing.
• Docker Build & Push: Uses Maven (skipping tests), Dockerfile to create an image, and handles pushing to Docker Hub.
• Deploy to Kubernetes: Manages deployment using Kubernetes manifests (under k8s folder) and starts a Minikube cluster.
c. Container Registry: Represent Docker Hub where the container images are stored.
d. Deployment Environment: A Kubernetes Cluster which is used to deploy and run the application (and Minikube for local testing).
Relationships and Interactions
• How the repository is the starting point of the CI/CD process triggered by GitHub Actions (with separate jobs for build, container image creation, and deployment).
• From source code to “Build & Test” (using Maven).
• From “Build & Test” to “Docker Build & Push” (passing the built artifact).
• From “Docker Build & Push” pushing the image to Docker Hub.
• From Docker Hub to “Deploy to Kubernetes” on a Minikube cluster.
• Role of external services like GitHub Actions (automating the jobs) and the version control system.
Architectural Patterns
• Separation of concerns: development code is segregated by layers (controller, service, repository, model).
• Use of containerization and orchestration – how the Docker image is built and deployed to Kubernetes.
Relevant Technologies
• JDK 17 for compiling and running the application.
• Maven for dependency management and build automation.
• Docker (and Dockerfile) for containerization.
• GitHub Actions with its three pipeline jobs.
• Kubernetes (with manifest files in the “k8s” directory) for deployment orchestration within Minikube.
• Git (including .gitattributes and .gitignore files) for source control.
• Relationships between Java packages (controller, service, model, repository) to illustrate the internal structure if needed.
• Optionally, include external triggers from GitHub (pushes, PRs) that kick off the automated pipeline.
Happy diagramming!