How to perform Continuous integration using Jenkins in Docker

Last updated on May 27 2022
Raigiri Patil

Table of Contents

How to perform Continuous integration using Jenkins in Docker

Docker – Continuous Integration

Docker has integrations with many Continuous Integrations tools, which also includes the popular CI tool known as Jenkins. Within Jenkins, you have plugins available which can be employed to work with containers. So let’s quickly look at a Docker plugin available for the Jenkins tool.

Let’s go step by step and see what’s available in Jenkins for Docker containers.

Step 1 − Go to your Jenkins dashboard and click Manage Jenkins.

Page 1 Image 1 72
Manage Jenkins

Step 2 − Go to Manage Plugins.

Page 2 Image 2 63
Manage Plugins

Step 3 − Search for Docker plugins. Choose the Docker plugin and click the Install without restart button.

Page 2 Image 3 35
Install without restart

Step 4 − Once the installation is completed, go to your job within the Jenkins dashboard. In our example, we have a job called Demo.

Page 3 Image 4 36
Demo

Step 5 − Within the job, when you go to the Build step, you can now see the option to start and stop containers.

Page 4 Image 5 24
start and stop

Step 6 − As a simple example, you can choose the further option to stop containers when the build is completed. Then, click the Save button.

Page 4 Image 6 19
Save

Now, just run your job in Jenkins. Within the Console output, you’ll now be able to see that the command to Stop All containers has run.

Page 5 Image 7 14
Run

So, this brings us to the end of blog. This Tecklearn ‘How to perform Continuous integration using Jenkins in Docker’ blog helps you with commonly asked questions if you are looking out for a job in DevOps. If you wish to learn Docker and build a career in DevOps domain, then check out our interactive, Containerization using Docker Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

https://www.tecklearn.com/course/containerization-using-docker/

Containerization using Docker Training

About the Course

Tecklearn has specially designed this Containerization using Docker Training Course to advance your skills for a successful career in this domain. his Docker training online course will help you learn Docker containerization, running Docker containers, Docker image creation, Dockerfile, Docker orchestration, security best practices and more through hands-on projects and case studies. Upon completion of this online training, you will hold a solid understanding and hands-on experience with Docker.

Why Should you take Containerization using Docker Training?

  • Average salary of Docker Expert is $110k – Indeed.com
  • According to Grand View Research, the DevOps market size is estimated to be worth $12.85 billion by 2025. DevOps professionals are highly paid and in-demand throughout industries including retail, eCommerce, finance, and technology.
  • Intuit, PayPal, Splunk, Uber & many other MNC’s worldwide use Docker across industries

What you will Learn in this Course?

Introduction to DevOps

  • What is Software Development
  • Software Development Life Cycle
  • Why DevOps?
  • What is DevOps?
  • DevOps Lifecycle
  • DevOps Tools
  • Benefits of DevOps
  • How DevOps is related to Agile Delivery
  • DevOps Implementation

Containerization using Docker – Part 1

  • Introduction to Docker
  • Understanding Docker Lifecycle
  • Docker Architecture
  • Components of Docker Ecosystem
  • Common Docker Operations
  • Committing changes in a Container
  • Hands On

Containerization using Docker – Part 2

  • Building Custom Docker Images
  • Docker Image
  • Introduction to Docker Swarm
  • Deploying a 2-Node Cluster using Docker Swarm
  • Hands on

 

0 responses on "How to perform Continuous integration using Jenkins in Docker"

Leave a Message

Your email address will not be published. Required fields are marked *