Skip to main content

Command Palette

Search for a command to run...

⚒Day 24- Complete Jenkins CI/CD Project

Published
3 min read
⚒Day 24- Complete Jenkins CI/CD Project
P

Hey there! 👋

I'm Pratik R. Mandge, a DevOps Engineer passionate about all things AWS DevOps Technology. Currently on a learning adventure, I'm here to share my journey and Blog's in the world of cloud and DevOps.

🛠️ My focus? Making sense of AWS services, improving CI/CD, and diving into infrastructure as code. Whether you're fellow interns or curious enthusiasts, let's grow together in the vibrant DevOps space.

🌐 Connect with me for friendly chats, shared experiences, and learning moments. Here's to embracing the learning curve and thriving in the exciting world of AWS DevOps Technology!

Follow me on LinkedIn: https://www.linkedin.com/in/pratik-mandge363

Hello, DevOps enthusiasts! If you've made it through Day 23 of our Jenkins CI/CD journey, congratulations are in order! Today is all about putting your newfound knowledge into action by completing a comprehensive Jenkins CI/CD project for your Node.js application. This project will not only streamline your development process but also serve as a standout addition to your resume. So, get ready to build a robust CI/CD pipeline that showcases your skills and enhances your DevOps prowess!

Recap: Day 23 - Jenkins CI/CD Concepts

Before embarking on today's project, it's essential to have a solid grasp of the Jenkins CI/CD concepts covered on Day 23. Understanding the workflow and integration points is key to implementing a robust CI/CD pipeline successfully. If you need a quick refresher, take some time to revisit the Day 23 materials. Being well-prepared will ensure you get the most out of today's hands-on tasks.

💿Task-01: Forking Repository and GitHub Integration

Step 1: Forking the Repository

To kick off your Jenkins CI/CD project, start by forking the provided repository on GitHub. This action creates a personal copy of the repository under your GitHub account, allowing you to freely experiment without impacting the original codebase.

Step 2: Connecting Jenkins Job to GitHub Repository

Now that you have your forked repository, establish a connection between Jenkins and GitHub. Jenkins can automatically build and deploy your application whenever changes are pushed to the repository. This integration streamlines the development process and ensures that your CI/CD pipeline is triggered seamlessly.

Step 3: GitHub WebHooks and CI/CD Setup

Take a moment to familiarize yourself with GitHub WebHooks. These are mechanisms that allow GitHub to notify external services, such as Jenkins, about events in your repository. Configure WebHooks to enable automatic triggering of the CI/CD pipeline whenever changes occur in your GitHub repository.

For a comprehensive guide on this process, refer to the suggested video. This resource provides a step-by-step walkthrough, ensuring you have a solid understanding of how GitHub integration and WebHooks work in tandem with Jenkins.

💿Task-02: Running the Application with Docker Compose

Step 1: Execute Shell Script in Jenkins

Inside your Jenkins job configuration, set up an Execute Shell build step. This step will be responsible for executing commands within the Jenkins environment. In this case, it will run your Node.js application using Docker Compose.

Step 2: Crafting a Docker Compose File

Create a Docker Compose file tailored to your Node.js application. This file should define the services, networks, volumes, and other configurations required for your application to run smoothly in a Dockerized environment. This is an excellent opportunity for you to contribute to the open-source community by sharing your Docker Compose file.

If you're new to Docker Compose, consider consulting the official documentation for guidance on its structure and usage.

Step 3: Run the Project and Celebrate

Once your Jenkins job is configured and your Docker Compose file is ready, execute the job. Watch as Jenkins automatically builds and deploys your Node.js application using the defined CI/CD pipeline.

As the final step, give yourself a treat! Celebrate the successful implementation of your CI/CD pipeline and the deployment of your application. This marks a significant achievement in your journey towards mastering DevOps practices.

I believe this blog will be really helpful, giving you fresh perspectives and teaching you something new and interesting. 🙏

😊 Enjoy learning!

More from this blog

🌟 𝗘𝘅𝗽𝗹𝗼𝗿𝗶𝗻𝗴 𝘁𝗵𝗲 𝗞𝗲𝘆 𝗖𝗼𝗺𝗽𝗼𝗻𝗲𝗻𝘁𝘀 𝗼𝗳 𝗞𝘂𝗯𝗲𝗿𝗻𝗲𝘁𝗲𝘀 ! 🌟

Kubernetes is designed to automate the deployment, scaling, and operation of application containers. The architecture is divided into two main components: 𝙈𝙖𝙨𝙩𝙚𝙧 and 𝙒𝙤𝙧𝙠𝙚𝙧. Here’s a detailed breakdown: 🔶𝙈𝙖𝙨𝙩𝙚𝙧 𝙉𝙤𝙙𝙚 𝘾𝙤𝙢𝙥𝙤�...

May 19, 20242 min read
🌟 𝗘𝘅𝗽𝗹𝗼𝗿𝗶𝗻𝗴 𝘁𝗵𝗲 𝗞𝗲𝘆 𝗖𝗼𝗺𝗽𝗼𝗻𝗲𝗻𝘁𝘀 𝗼𝗳 𝗞𝘂𝗯𝗲𝗿𝗻𝗲𝘁𝗲𝘀 ! 🌟

⛅️Important AWS Services: Part - 3

🚀𝙀𝙭𝙘𝙞𝙩𝙚𝙙 𝙩𝙤 𝙨𝙝𝙖𝙧𝙚 𝙢𝙮 𝙚𝙭𝙥𝙚𝙧𝙩𝙞𝙨𝙚 𝙞𝙣 𝘼𝙒𝙎 𝙬𝙞𝙩𝙝 𝙖 𝙛𝙤𝙘𝙪𝙨 𝙤𝙣 𝙘𝙤𝙣𝙩𝙖𝙞𝙣𝙚𝙧𝙞𝙯𝙖𝙩𝙞𝙤𝙣 𝙖𝙣𝙙 𝙙𝙚𝙥𝙡𝙤𝙮 ▶️𝗔𝗺𝗮𝘇𝗼𝗻 𝗘𝗹𝗮𝘀𝘁𝗶𝗰 𝗞𝘂𝗯𝗲𝗿𝗻𝗲𝘁𝗲𝘀 𝗦𝗲𝗿𝘃𝗶𝗰𝗲 (𝗘𝗞𝗦): ▪️Fully managed Kuberne...

May 12, 20242 min read
⛅️Important AWS Services: Part - 3

⛅️Important AWS Services: Part - 2

⚜️𝙄𝙢𝙥𝙤𝙧𝙩𝙖𝙣𝙩 𝙬𝙞𝙙𝙚 𝙧𝙖𝙣𝙜𝙚 𝙤𝙛 𝘼𝙒𝙎 𝙨𝙚𝙧𝙫𝙞𝙘𝙚𝙨 𝙩𝙝𝙖𝙩 𝙘𝙖𝙣 𝙚𝙣𝙖𝙗𝙡𝙚 𝙩𝙤 𝙖𝙧𝙘𝙝𝙞𝙩𝙚𝙘𝙩 𝙨𝙘𝙖𝙡𝙖𝙗𝙡𝙚, 𝙨𝙚𝙘𝙪𝙧𝙚, 𝙖𝙣𝙙 𝙚𝙛𝙛𝙞𝙘𝙞𝙚𝙣𝙩 𝙘𝙡𝙤𝙪𝙙 𝙨𝙤𝙡𝙪𝙩𝙞𝙤𝙣𝙨. 𝙃𝙚𝙧𝙚 𝙖𝙧𝙚 𝙨𝙤𝙢𝙚 𝙠𝙚𝙮 𝙨𝙚𝙧...

May 10, 20243 min read
⛅️Important AWS Services: Part - 2

PratikM's Blog

49 posts