Create Jenkins Pipeline to Build Docker Image for Python App & Push Docker Image into Docker Hub

  Рет қаралды 42,398

DevOps Coach

DevOps Coach

Күн бұрын

www.coachdevop...
Create Jenkins pipeline for the following:
- Automating builds
- Automating Docker image creation
- Automating Docker image upload into DockerHub
- Automating Docker container provisioning
Bitbucket URL is - bitbucket.org/...
Pre-requisites:
1. Jenkins is up and running
2. Docker installed on Jenkins instance and configured.
3. Docker plug-in installed in Jenkins
4. user account setup in cloud.docker.com
5. port 8096 is opened up in firewall rules.
Step #1 - Create Credentials for Docker Hub
Step # 2 - Create a pipeline in Jenkins, name can be anything
Step # 3 - Write the pipeline code
Step # 4 - Click on Build - Build the pipeline
Steps # 5 - Access Python App

Пікірлер: 59
@amarnathsagala2173
@amarnathsagala2173 4 ай бұрын
Very Wonderfully explained ... Great job 👏👏.. I am grateful and thankful to you as I finished the POV with this tutorial...it helped a lot !! LONG LIVE DEVOS COACH !!🎉🎉🎉🎉
@DevOpsCoach
@DevOpsCoach 4 ай бұрын
Glad it helped! Thank you so much!!
@ehabdabous3468
@ehabdabous3468 2 жыл бұрын
Very clear and organized explanation ,I followed this video and every thing is working as well ,Thank you
@DevOpsCoach
@DevOpsCoach 2 жыл бұрын
Glad it helped, thank you so much Ehab!
@willyrosahuanca5884
@willyrosahuanca5884 3 жыл бұрын
Love your videos, I didnt implement yet anything, just watching, love how you explain the concepts
@DevOpsCoach
@DevOpsCoach 3 жыл бұрын
Glad you like them! thank you Willy!
@moldygamer
@moldygamer 4 ай бұрын
Great Video and well explained.
@DevOpsCoach
@DevOpsCoach 4 ай бұрын
Glad you liked it! Thank you!
@roberto_camp
@roberto_camp 3 жыл бұрын
great job making a complicated topic seem easy!
@DevOpsCoach
@DevOpsCoach 3 жыл бұрын
Glad you liked it, thanks a lot
@thangamdurai5572
@thangamdurai5572 3 жыл бұрын
Sir, I likes your videos.. very nice all
@DevOpsCoach
@DevOpsCoach 3 жыл бұрын
Please keep watching, thanks!
@gello2777
@gello2777 3 жыл бұрын
Very nice ..well organized video..really commendable.
@DevOpsCoach
@DevOpsCoach 3 жыл бұрын
Thank you so much for your kind words, it means a lot to me
@sonalivarshney198
@sonalivarshney198 2 жыл бұрын
1 question please.. How do we know that when we have to give credentials in manage jenkins-> credentials. Bcz in previous video for tomcat u gave credentials in snippet generator but for Docker hub u r saving the credential in manage jenkins.. 2) for maven you gave maven home path in global tool configuration but for Docker why you didn't give? I am having this confusion a lot
@HarshSharma-qo6ew
@HarshSharma-qo6ew 3 жыл бұрын
How can we run image in to another remote host.. Using jenkins
@shikharshah1826
@shikharshah1826 3 жыл бұрын
Huge thanks for the content! Quick question: How do we run the docker build and all commands in a jenkins instance that's already running on a docker container? I tried DIND but somehow I'm failing
@DevOpsCoach
@DevOpsCoach 3 жыл бұрын
You need to install docker in Jenkins instance and also docker plug-in in Jenkins as well, please check the pre-requisites
2 жыл бұрын
I'm trying to follow this tutorial locally, have the docker plugins configured and Jenkins locally, docker desktop up and running on my MacOS but when I execute the pipeline I get the error=> docker: command not found
@DevOpsCoach
@DevOpsCoach 2 жыл бұрын
you need to install Docker locally too!
@sanjeevreddy3691
@sanjeevreddy3691 2 жыл бұрын
in real time how and on what basis we give version to docker image while building
@rishabagarwal7295
@rishabagarwal7295 2 жыл бұрын
How can we define the image name how can I get i am confused bit here
@tufisii2006
@tufisii2006 2 жыл бұрын
I have Jenkins installed but in a Docker container. How do we run the docker build and all commands in a jenkins instance that's already running on a docker container? In your example you got Jenkins installed on EC2 directly. But what if the EC2 had Docker installed and you install Jenkins in a container?
@abhinavbrs3882
@abhinavbrs3882 2 жыл бұрын
I need to work with this exact scenario, please let me know how to if you have figured it out
@tufisii2006
@tufisii2006 2 жыл бұрын
@@abhinavbrs3882 Hello! I solved the problem. Jenkins works with Agents in order to run comands. It has an internal agent by default but it is not recommended to use it. You need to run another EC2 instance (or any server that can be accessed with internet) and add it as a Jenkins agent. Search on KZbin:” how to add Jenkins agent node” . After the setup will be done all the commands will be run on the agent. So if you want to run:”docker pull X” you need to install docker on the new server
@architjain9346
@architjain9346 2 жыл бұрын
So nicely explained....... thanks you so much I have a question sir.. how did you create docker image as it requires dockerfile. basically I didn't get the create image stage
@DevOpsCoach
@DevOpsCoach 2 жыл бұрын
Dockerfile was already part of my code. I created docker image using Docker image build stage
@nsontung
@nsontung 3 жыл бұрын
Love your video, one question is: Can I do the same thing for the freestyle project? deploy the image to nexus and pull it back to deploy!
@DevOpsCoach
@DevOpsCoach 3 жыл бұрын
Yes you can! you will have to use execute shell to execute shell script
@shahul.hameed.m
@shahul.hameed.m 3 жыл бұрын
Let's say we have many pipelines, then how should we know that which pipeline is to access which credentials? I want to know that for every differnt pipeline we use different dockerhub credentials.?
@DevOpsCoach
@DevOpsCoach 3 жыл бұрын
You will be using credentials id which should be unique
@skateforlife3679
@skateforlife3679 2 жыл бұрын
What is the creditentials ? Where does it come from ? I made a docker hub credit but it says that it is not matching when i build the pipeline
@DevOpsCoach
@DevOpsCoach 2 жыл бұрын
you need to create account in cloud.docker.com and then use these login info to create credentials entry in Jenkins
@skateforlife3679
@skateforlife3679 2 жыл бұрын
@@DevOpsCoach Sorry, i understood after, it's nice thankjs !
@anuradhatalla8732
@anuradhatalla8732 2 жыл бұрын
What type of language you have used inside script { } And Can we use any coding language to create pipeline in jenkins
@DevOpsCoach
@DevOpsCoach 2 жыл бұрын
groovy scripting
@atexnik
@atexnik Ай бұрын
1:14 EXPOSE doesn't tell the app which port to listen, it is a pure documentational instruction, and is used with -P option for docker run.
@jothimanikandanofficial3690
@jothimanikandanofficial3690 2 жыл бұрын
I was facing some error /var/jenkins_home/workspace/Newproje........: docker: not found
@DevOpsCoach
@DevOpsCoach 2 жыл бұрын
Install docker in Jenkins ec2 instance
@jothimanikandanofficial3690
@jothimanikandanofficial3690 2 жыл бұрын
@@DevOpsCoach sure bro
@jothimanikandanofficial3690
@jothimanikandanofficial3690 2 жыл бұрын
Hi bro i having one doubt how I would contact you
@DevOpsCoach
@DevOpsCoach 2 жыл бұрын
please check website home page for contact info
@bluesteel1
@bluesteel1 2 жыл бұрын
how to pull docker containers from docker hub in jenkins?
@DevOpsCoach
@DevOpsCoach 2 жыл бұрын
dockerhub stores only images, not container. images can be pulled using docker pull command. you can execute it Jenkins pipeline --> sh 'docker pull '
@deva_2022
@deva_2022 Жыл бұрын
After this next video link add in description. Next step .
@DevOpsCoach
@DevOpsCoach 11 ай бұрын
done, thank you!
@LEOxLCU
@LEOxLCU 18 күн бұрын
sir, this is what am searching too far
@DevOpsCoach
@DevOpsCoach 18 күн бұрын
Glad to hear that
@TheManis-z4w
@TheManis-z4w 3 жыл бұрын
Provide bitbucket URL source code
@DevOpsCoach
@DevOpsCoach 3 жыл бұрын
check the details in the video
@jasbircena
@jasbircena 3 жыл бұрын
provide the source code so that i can practice
@DevOpsCoach
@DevOpsCoach 3 жыл бұрын
check the details in the video
@suryamohanty7465
@suryamohanty7465 3 жыл бұрын
can you share source code and dockerfile bitbuckrt url
@DevOpsCoach
@DevOpsCoach 3 жыл бұрын
check the details in the video
@shahul.hameed.m
@shahul.hameed.m 2 жыл бұрын
So, in order to keep the webpage alive for 24x7 what is the procedure they do in organization if server goes down ?
@DevOpsCoach
@DevOpsCoach 2 жыл бұрын
setup cluster and add more than one servers. there are a lot of ways to make your application highly available
@shahul.hameed.m
@shahul.hameed.m 2 жыл бұрын
@@DevOpsCoach thanks for your response
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 23 МЛН
SCHOOLBOY. Мама флексит 🫣👩🏻
00:41
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 6 МЛН
GTA 5 vs GTA San Andreas Doctors🥼🚑
00:57
Xzit Thamer
Рет қаралды 27 МЛН
Cursor Is Beating VS Code (...by forking it)
18:00
Theo - t3․gg
Рет қаралды 52 М.
How to Push a Docker Image to Docker Hub Using Jenkins
7:47
CloudBeesTV
Рет қаралды 20 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 80 М.
#3 Jenkinsfile to Build and Push Image onto DockerHub
14:00
Valaxy Technologies
Рет қаралды 33 М.
How to Push docker image to Docker Hub using Jenkins Pipeline
17:56
API vs. SDK: What's the difference?
9:21
IBM Technology
Рет қаралды 1,4 МЛН
The IDEAL & Practical CI / CD Pipeline - Concepts Overview
22:36
Be A Better Dev
Рет қаралды 479 М.