Day 23: Jenkins Freestyle Project for DevOps Engineers.

Day 23: Jenkins Freestyle Project for DevOps Engineers.

What Is a Build Job?

A Jenkins build job contains the configuration for automating a specific task or step in the application building process. These tasks include gathering dependencies, compiling, archiving, or transforming code, and testing and deploying code in different environments.

Jenkins supports several types of build jobs, such as freestyle projects, pipelines, multi-configuration projects, folders, multibranch pipelines, and organization folders.

To implement Continuous Deployment in Jenkins you need to set various pipelines that will consist of Several Stages which include the following:

A) Build

B) Stage

C) Deploy (Deployment)

D) Monitor

TASK 01:

Create Freestyle project in jenkins.

Step 1:

Login to Jenkins and create freestyle project.

Step 2:

Select Git Project and use below Repo.

https://github.com/AjayK631/two-tier-Flask-.git

Step 3:

In Build Step use docker build and docker run.

docker build . -t flask-app:latest

docker run -d -p 5000:5000 flask-app:latest


TASK 2 :

Create Freestyle project for same app as above but this time we will use docker compose.

Follow Same steps but in step 3 there is little changes.

Use below line instead of above docker build and run in build step(Execute Shell)

docker-compose down && docker-compose up



Koenraad Block

Founder @ Bridge2IT +32 471 26 11 22 | Business Analyst @ Carrefour Finance

8 个月

Your expertise in DevOps shines through your post. Well done! ????

要查看或添加评论,请登录

Ajay Kadam的更多文章

  • DevSecOps Jenkins CI/CD Pipeline for a Node.js Application

    DevSecOps Jenkins CI/CD Pipeline for a Node.js Application

    Requirements: JDK and Jenkins Docker and docker-compose SonarQube Trivy OWASP Dependency Checker GitHub Machine with…

    4 条评论
  • Day 29: Jenkins Interview Questions

    Day 29: Jenkins Interview Questions

    In today's fast-paced software development landscape, mastering Continuous Integration and Continuous Deployment…

    1 条评论
  • Day 28: Jenkins Agents

    Day 28: Jenkins Agents

    Jenkins Master (Server) Jenkins’s server or master node holds all key configurations. Jenkins master server is like a…

  • Day 27: Jenkins Declarative Pipeline

    Day 27: Jenkins Declarative Pipeline

    Some terms for your Knowledge What is Pipeline - A pipeline is a collection of steps or jobs interlinked in a sequence.…

  • Day 26: Simple Jenkins Pipeline

    Day 26: Simple Jenkins Pipeline

    We will Create a Jenkins Pipeline to simply print "Hello World". What is Pipeline - A pipeline is a collection of steps…

  • Copy of Day 24: Complete Jenkins CI/CD Project

    Copy of Day 24: Complete Jenkins CI/CD Project

    What are GitHub Webhooks? GitHub Webhooks are user-defined HTTP callbacks triggered by events occurring within a…

  • Day 22: Getting Started with Jenkins ??

    Day 22: Getting Started with Jenkins ??

    Understanding Jenkins At its core, Jenkins is a (CI/CD) tool, meaning it helps automate the process of building…

  • Day 21:Demystifying Docker: A Comprehensive Guide to Common Interview Questions

    Day 21:Demystifying Docker: A Comprehensive Guide to Common Interview Questions

    In recent years, Docker has revolutionized the way we build, ship, and run applications. Its popularity has soared…

  • Day 19: Docker Network and Docker Volumes

    Day 19: Docker Network and Docker Volumes

    DOCKER Network: ?? Exploring the Power of Docker Networking! ?? Docker has revolutionized the way we deploy and manage…

  • Day 18: Docker for Devops Engineers

    Day 18: Docker for Devops Engineers

    ?? What is Docker Compose? Docker Compose is a powerful tool that allows developers to define and manage…

    1 条评论

社区洞察