π Day 23 Task: Jenkins Freestyle Project for DevOps Engineers π
Table of contents
No headings in the article.
Hey there, awesome DevOps warriors! π‘οΈ The #90daysofdevops adventure is on fire! Today's mission is SUPER exciting! We're diving into the world of Jenkins Freestyle Projects. Are you ready to unleash your DevOps magic? Let's do this! π
π§ CI/CD: A Quick Recap π§ Let's quickly revisit what CI/CD means! Continuous Integration (CI) is like a teamwork dance, where different code changes from various developers come together into a single code home. πΊπ Automated tools help us blend these changes smoothly, finding bugs faster and making code buddies work in harmony. ππ΅ Continuous Delivery (CD) then takes over, ensuring that we serve up changes to our users like a pro chef, without any spicy mistakes! ππ¨βπ³
π οΈ What's a Build Job? π οΈ Imagine a Build Job like a recipe card for your app. It guides Jenkins on how to whip up your code into a perfect dish! π°π©βπ³ Whether it's mixing ingredients, baking, or taste-testing, Jenkins has your back. It's got different kitchen tools β freestyle projects, pipelines, and more! π³π§
π¨ Freestyle Projects: Unleash the Creativity! π¨ Alright, let's shine a light on Freestyle Projects! Think of it as your DevOps playground. Here's what you'll be up to:
Task-01: Docker Dance π³
First, create an agent for your cool app. Remember that app you rocked with Docker? It's showtime for it again!
Spin up a new Jenkins freestyle project for your app.
Jump into the "Build" section and add a step to do the "docker build" magic. This cooks up an image for your container.
Add a second step for the "docker run" command. This fires up a container using the fancy image from step 3.
Task-02: Docker-Compose Duets πΆ
You've got skills, so create another Jenkins project.
This time, it's to run the command "docker-compose up -d". Remember your day-19 shenanigans with the Application & Database docker-compose? It's time to repeat the magic!
To keep things tidy, set up a cleanup step to run "docker-compose down". This politely stops and removes the containers from your docker-compose journey.
π You're a DevOps Rockstar! π By completing these tasks, you're not just working on Jenkins Freestyle Projects, you're weaving the threads of CI/CD brilliance! πͺ’β¨ So go ahead, dive into those Jenkins waves, create, build, and deploy with a smile! Remember, DevOps is like a puzzle β and you're mastering it one task at a time. π§©π
Keep rocking, DevOps champions! ππ©βπ»π¨βπ»