{"id":24234949,"url":"https://github.com/tks-devops/ci-cd-pipeline-project","last_synced_at":"2026-04-08T22:31:22.879Z","repository":{"id":271766104,"uuid":"914503035","full_name":"Tks-Devops/CI-CD-Pipeline-Project","owner":"Tks-Devops","description":"This project demonstrates a basic CI/CD pipeline for a Java web application using various DevOps tools and technologies. The pipeline integrates Git, GitHub, Jenkins, Maven, and Tomcat on an Ubuntu server","archived":false,"fork":false,"pushed_at":"2025-01-12T06:58:40.000Z","size":1103,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T03:37:52.479Z","etag":null,"topics":["apache","ci-cd","git","github","jenkins","maven","pipeline","tomcat-server","ubuntu","ubuntu-server"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tks-Devops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-01-09T18:14:05.000Z","updated_at":"2025-06-20T07:11:57.000Z","dependencies_parsed_at":"2025-01-09T19:27:35.329Z","dependency_job_id":"cc5eac43-f93c-4641-a8ef-e6cb2c2dda16","html_url":"https://github.com/Tks-Devops/CI-CD-Pipeline-Project","commit_stats":null,"previous_names":["tks-devops/ci-cd-pipeline-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tks-Devops/CI-CD-Pipeline-Project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tks-Devops%2FCI-CD-Pipeline-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tks-Devops%2FCI-CD-Pipeline-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tks-Devops%2FCI-CD-Pipeline-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tks-Devops%2FCI-CD-Pipeline-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tks-Devops","download_url":"https://codeload.github.com/Tks-Devops/CI-CD-Pipeline-Project/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tks-Devops%2FCI-CD-Pipeline-Project/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268290738,"owners_count":24226646,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["apache","ci-cd","git","github","jenkins","maven","pipeline","tomcat-server","ubuntu","ubuntu-server"],"created_at":"2025-01-14T17:39:02.559Z","updated_at":"2026-04-08T22:31:22.843Z","avatar_url":"https://github.com/Tks-Devops.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CI-CD-Pipeline-Project\nThis project demonstrates a basic CI/CD pipeline for a Java web application using various DevOps tools and technologies. The pipeline integrates Git, GitHub, Jenkins, Maven, and Tomcat on an Ubuntu server\n# Complete DevOps CI/CD Pipeline Project\n\nThis project demonstrates a basic CI/CD pipeline for a Java web application using various DevOps tools and technologies. The pipeline integrates Git, GitHub, Jenkins, Maven, and Tomcat on an Ubuntu server.\n\n## Project Overview\n\nThe objective of this project is to:\n- Set up a CI/CD pipeline for a Java web application.\n- Automate the build, testing, and deployment processes.\n- Deploy Jenkins on a Tomcat server running on Ubuntu.\n\n## Tools and Technologies Used\n\n- **Git**: Version control system to track changes in source code.\n- **GitHub**: Remote repository for the Git project.\n- **Maven**: Build automation tool to manage project dependencies and compile code.\n- **Jenkins**: CI/CD tool to automate builds, testing, and deployment.\n- **Tomcat 10**: Web server to host the Java application.\n- **Ubuntu**: Operating system to host Jenkins and Tomcat.\n- **Java**: Programming language for the application.\n\n## Steps to Set Up the Project\n\n### 1. Launch an EC2 Instance\n- Sign in to your AWS Management Console.\n- Launch an EC2 instance (Ubuntu 20.04 or later).\n- Configure security groups to allow inbound traffic on ports 8080 (Tomcat) and 22 (SSH).\n\n### 2. Connect to Your EC2 Instance\n```bash\nssh -i \u003cyour-key-pair\u003e.pem ubuntu@\u003cyour-ec2-public-ip\u003e\n```\n\n### 3. Install System Dependencies\n```bash\nsudo apt update \u0026\u0026 sudo apt upgrade -y\nsudo apt install default-jdk -y\n```\n\n### 4. Install and Configure Tomcat 10\n- Download Tomcat:\n  ```bash\n  wget https://dlcdn.apache.org/tomcat/tomcat-10/v10.1.15/bin/apache-tomcat-10.1.15.tar.gz\n  ```\n- Extract and set up:\n  ```bash\n  sudo mkdir -p /opt/tomcat\n  sudo tar xzvf apache-tomcat-*.tar.gz -C /opt/tomcat --strip-components=1\n  ```\n- Configure Tomcat as a service and start it:\n  ```bash\n  sudo nano /etc/systemd/system/tomcat.service\n  sudo systemctl daemon-reload\n  sudo systemctl start tomcat\n  sudo systemctl enable tomcat\n  ```\n\n### 5. Install and Configure Jenkins\n- Download Jenkins WAR file:\n  ```bash\n  wget https://get.jenkins.io/war-stable/2.346.1/jenkins.war\n  ```\n- Deploy Jenkins on Tomcat:\n  ```bash\n  sudo cp jenkins.war /opt/tomcat/webapps/\n  sudo systemctl restart tomcat\n  ```\n- Access Jenkins at `http://\u003cyour-ec2-public-ip\u003e:8080/jenkins`.\n\n### 6. Install Maven\n```bash\nwget https://dlcdn.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz\nsudo tar xzvf apache-maven-3.9.9-bin.tar.gz -C /opt\nsudo ln -s /opt/apache-maven-3.9.9 /opt/maven\nexport PATH=$PATH:/opt/maven/bin\nmvn -version\n```\n\n### 7. Configure Jenkins Job\n- **Source Code Management**: Connect to your GitHub repository.\n- **Build Triggers**: Use Poll SCM or GitHub webhooks.\n- **Build Steps**:\n  - Invoke top-level Maven targets (e.g., `clean install`).\n  - Record compiler warnings and static analysis results.\n  - Publish JUnit test results.\n- **Post-Build Actions**:\n  - Deploy to Tomcat or Docker.\n  - Send email notifications.\n\n### 8. Configure Security and Access\n- Edit `tomcat-users.xml` to add roles and users:\n  ```xml\n  \u003crole rolename=\"admin\"/\u003e\n  \u003crole rolename=\"manager\"/\u003e\n  \u003cuser username=\"admin\" password=\"admin\" roles=\"admin,manager\"/\u003e\n  ```\n- Update `context.xml` files for remote access.\n\n### 9. Open Required Ports\n```bash\nsudo ufw allow 8080\n```\n\n### 10. Access the Application\n- Open a browser and navigate to `http://\u003cyour-ec2-public-ip\u003e:8080`.\n\n## Additional Resources\n- [GitHub Repository](https://github.com/tulasisahu/Ekart)\n- [Jenkins Plugins](https://plugins.jenkins.io)\n\n## Contact\nFor queries, email: [tksahu.devops@gmail.com](mailto:tksahu.devops@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftks-devops%2Fci-cd-pipeline-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftks-devops%2Fci-cd-pipeline-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftks-devops%2Fci-cd-pipeline-project/lists"}