Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver1
41いいね 2,801 views回再生

How to build and deploy Docker Containers on same server using Jenkins | CICD #jenkins #cicd #devops

#jenkins #docker #git #cicd #devops

How to build and deploy Docker Containers on the same server where Jenkins is installed without pushing docker images to docker repository using Jenkins | CICD | Automation

In the last video, we have seen how to install Jenkins using Docker and How to create multi-branch pipeline in Jenkins

In this video, we have discussed how to build docker images and deploy containers to the same machine as Jenkins and run it. We have used Jenkinsfile to achieve this and created a multi-branch pipeline to deploy it. We have also shown how CICD workflow is completed with setup

This helps in multiple use cases such as

If you have only one development server where all your micro services or code gets deployed in different docker containers, you can spin up Jenkins container as well and automate build and deployment of all other containers
You can manage Docker containers from inside jenkins container

In this video, we have used NodeJS code as sample project, build and deployed it using Docker container

2 main challenges while doing this is

You need to install Docker inside Jenkins Container
You need to map server’s docker socket file to Jenkins Container’s docker socket file, so both docker engine can work as one

To get started with Jenkins, you can install docker on your system, for steps, follow this video -    • What is Jenkins | How to install Jenkins u...  

To know how to create multi branch pipeline in jenkins, see this video    • What is Jenkinsfile | How to create multi-...  

Sample Jenkinsfile used in the video can be found here - https://identicalcloud.com/blog/sampl...

This video explains

0:00 Introduction
0:31 Code Structure
0:54 Understanding Dockerfile
1:12 Understanding NodeJS Code that will be deployed
1:30 Understanding Jenkinsfile with all steps
2:25 2 Major challenges to deploy
2:54 Overcome 1st challenge
4:21 Overcome 2nd challenge
4:50 Create pipeline
6:10 CICD example
6:54 Key pointers / conclusion

How to deploy nodejs code with Jenkins and Docker
How to deploy docker containers on same machine using jenkins
How to expose port number when jenkins is running via Docker

To know what is Docker:    • What is Docker | Docker explained in easy ...  
How to install Jenkins with Docker:    • What is Jenkins | How to install Jenkins u...  

checkout our other videos :

How to get Free AWS Credits for your startup:    • How to get Free AWS Credits for your start...  

How to create a backup of EC2 instance (AMI) using lambda function:    • How to create backup of EC2 instance (AMI)...  

Subscribe to our channel and visit our website for more such AWS Cloud and DevOps related videos: www.identicalcloud.com

Email us your valuable feedback: identicalcloud@gmail.com

Do Like, Share, Comment, and Subscribe for more such content


#docker #devops #containerization #jenkins #cicd #automation #identicalcloud #dockerfile

コメント