{"id":19131413,"url":"https://github.com/dashrathmundkar/cicd-java-maven-project","last_synced_at":"2025-05-06T16:20:08.332Z","repository":{"id":136996286,"uuid":"471758615","full_name":"DashrathMundkar/cicd-java-maven-project","owner":"DashrathMundkar","description":"This is simple java-maven project for cicd environment the purpose of project is to how to ship application from development to kubernetes environment using  CICD.","archived":false,"fork":false,"pushed_at":"2025-03-05T08:22:38.000Z","size":15448,"stargazers_count":1,"open_issues_count":1,"forks_count":13,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T12:44:29.223Z","etag":null,"topics":["cicd","docker","java","java-8","jenkins","jenkins-pipeline","jenkinsfile","kubernetes","maven","open-source","sonarqube","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DashrathMundkar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-03-19T16:59:10.000Z","updated_at":"2022-03-26T19:28:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"87d54da4-10ee-4cfc-897c-b9646c0c0a01","html_url":"https://github.com/DashrathMundkar/cicd-java-maven-project","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DashrathMundkar%2Fcicd-java-maven-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DashrathMundkar%2Fcicd-java-maven-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DashrathMundkar%2Fcicd-java-maven-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DashrathMundkar%2Fcicd-java-maven-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DashrathMundkar","download_url":"https://codeload.github.com/DashrathMundkar/cicd-java-maven-project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252721029,"owners_count":21793746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cicd","docker","java","java-8","jenkins","jenkins-pipeline","jenkinsfile","kubernetes","maven","open-source","sonarqube","spring-boot"],"created_at":"2024-11-09T06:15:04.905Z","updated_at":"2025-05-06T16:20:08.308Z","avatar_url":"https://github.com/DashrathMundkar.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![example workflow](https://github.com/DashrathMundkar/cicd-java-maven-project/actions/workflows/maven.yml/badge.svg) ![Jenkins](https://img.shields.io/badge/jenkins-%232C5263.svg?style=for-the-badge\u0026logo=jenkins\u0026logoColor=purple) ![Kubernetes](https://img.shields.io/badge/kubernetes-%23326ce5.svg?style=for-the-badge\u0026logo=kubernetes\u0026logoColor=white) ![Apache Maven](https://img.shields.io/badge/Apache%20Maven-C71A36?style=for-the-badge\u0026logo=Apache%20Maven\u0026logoColor=white) ![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge\u0026logo=java\u0026logoColor=white) \n\n# cicd-java-maven-project\nThis is very basic/simple java-maven project for cicd environment and the purpose of the project is to showcase how to ship application from development to kubernetes environment using CICD.\n\n## Build and deploy locally using docker\n\n1. ```mvn clean install```\n\n\n3. ```docker build -t hello-world .```\n\n\n4. ```docker run -d -p 8080:8080 --name hello-world hello-world```\n\n\n5. Access the application on ```localhost:8080```\n\n\n## How to deploy on Kubernetes \n\n1.  First create namesapce by applying yaml file  ```kubectl apply -f kubernetes/namespace.yaml```\n3.  Then apply rest of the files from kubernetes folder using ```kubectl apply -f kubernetes/```\n4.  Now check if everything is up and running on our namespace using ```kubectl get all -n cicd-java-maven```\n5.  And make sure our application pod is up and running ```kubectl get pods -n cicd-java-maven```\n\n### Ok, but how to access the application over browser ????\n\nI assume you have either ```docker dekstop``` or ```kind cluster``` or ```minikube```\n\n1. We need to deploy the ingress-controller for that by applying the yaml file from this official documentation \n \n    ```kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.2/deploy/static/provider/cloud/deploy.yaml```\n    \n2. Check everything is up and running on ```kubectl get all -n ingress-nginx``` if everything is up and running then we are good to go.\n\n3. Now edit your hosts file from this location on Windows ```C:\\Windows\\System32\\drivers\\etc\\hosts``` and on Mac/Linux ```sudo vim /etc/hosts``` and add the entry in it ```127.0.0.1 exmaple-test.com```\n\n4. Access the application on browser ```exmaple-test.com``` now you should see our awesome project text.\n\n\n```If you like and want to extend our awesome application then please feel free to contribute :) ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashrathmundkar%2Fcicd-java-maven-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashrathmundkar%2Fcicd-java-maven-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashrathmundkar%2Fcicd-java-maven-project/lists"}