Skip to content

Srireddy88/TASK-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TASK-2 DAY-2

Task 2: CI/CD Pipeline with Jenkins & Docker

This project demonstrates a basic CI/CD setup using Jenkins, Docker, and GitHub, centered around a simple Node.js application.

Objective

  • Automate the process of building, testing, and deploying a Node.js app.
  • Use Jenkins to trigger the pipeline on each code commit.
  • Containerize the app using Docker and optionally push to DockerHub.

Tools & Services Used

  • Jenkins – For CI/CD pipeline automation.
  • Docker – For containerizing the application.
  • GitHub – Code repository & version control.
  • DockerHub – To store built images (integration with Jenkins configured).

What I Did

Screenshot 2025-04-09 212853

  1. Set up Jenkins on a local/cloud machine.(http://3.82.188.220:8080/)

  2. Connected Jenkins to GitHub using credentials to pull code from the repo.

  3. Added DockerHub credentials to Jenkins for pushing images.

  4. Created a Jenkinsfile with stages: Clone → Build → Test → Docker Build → Deploy.

  5. Screenshot 2025-04-09 212649 Screenshot 2025-04-09 212633

  6. Screenshot 2025-04-09 212713 Screenshot 2025-04-09 212539

  7. Faced 2 failed pipeline runs due to incorrect Node.js environment and Dockerfile issues.

  8. On the 3rd attempt, fixed the pipeline and successfully built, tested, and deployed the application.

  9. Screenshot 2025-04-09 212748

  10. Screenshot 2025-04-09 212808

  11. CI/CD Pipeline is created.


About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors