Hello DevOps champions! Today's challenge is nothing short of exhilarating โ we're diving into the world of Jenkins Freestyle Projects. It's an opportunity for DevOps engineers to flex their skills and push the boundaries of automation. Ready to embark on this journey? Let's make it happen! ๐๐ป
Understanding CI/CD - The DevOps Way! ๐
CI (Continuous Integration): It's all about automating the integration of code changes from multiple developers into a single codebase. Frequent commits, automated builds, and quick bug detection โ that's the heart of CI.
CD (Continuous Delivery): Following CI, CD ensures quick, error-free releases. It involves running tests in a staging environment, automating the release process, and having a deployable product at any time.
The Essence of a Build Job in Jenkins ๐ง
A Jenkins build job is the powerhouse of automation, orchestrating specific tasks in the application building process. It spans dependency gathering, compiling, testing, and deploying code across different environments. Today, we focus on the versatile "Freestyle Project."
What's a Freestyle Project? ๐ค
A freestyle project in Jenkins offers a canvas of options for building, testing, and deploying software. Let's unleash its potential with two exciting tasks!
Task-01: Building and Running Docker Containers ๐ณ
Step 1: Create an Agent for Your App
Set up an agent for the app deployed from Docker in an earlier task.
Step 2: Create a New Jenkins Freestyle Project
Head to Jenkins and create a new freestyle project for your app.
Step 3: Configure Build Steps
In the "Build" section, add a step to run the "docker build" command, creating the image for the container.
Add a second step to run the "docker run" command, starting a container using the created image.
Task-02: Managing Containers with Docker Compose ๐ข
Step 1: Create Jenkins Project
Establish a Jenkins project to execute the "docker-compose up -d" command, starting multiple containers from the day-19 Docker Compose file.
Step 2: Set Up Cleanup
- Configure a cleanup step in the Jenkins project to execute "docker-compose down," halting and removing containers as defined in the Compose file.
There you have it โ two thrilling tasks to conquer the realm of Jenkins Freestyle Projects! Embrace the power of automation and let's rock the #90daysofdevops journey together! ๐๐ง #Jenkins #DevOps #AutomationMastery #TechChallengeAccepted ๐
You can connect with me at: https://www.linkedin.com/in/davendersingh/