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

preview_player
Показать описание

Create Jenkins pipeline for the following:
- Automating builds
- Automating Docker image creation
- Automating Docker image upload into DockerHub
- Automating Docker container provisioning

Pre-requisites:
1. Jenkins is up and running
2. Docker installed on Jenkins instance and configured.
3. Docker plug-in installed in Jenkins
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
Рекомендации по теме
Комментарии
Автор

Love your videos, I didnt implement yet anything, just watching, love how you explain the concepts <3

willyrosahuanca
Автор

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 !!🎉🎉🎉🎉

amarnathsagala
Автор

Very clear and organized explanation, I followed this video and every thing is working as well, Thank you

ehabdabous
Автор

great job making a complicated topic seem easy!

roberto_camp
Автор

Very nice ..well organized video..really commendable.

gello
Автор

Sir, I likes your videos.. very nice all

thangamdurai
Автор

How can we run image in to another remote host.. Using jenkins

HarshSharma-qoew
Автор

in real time how and on what basis we give version to docker image while building

sanjeevreddy
Автор

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

shikharshah
Автор

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

sonalivarshney
Автор

So nicely 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

architjain
Автор

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!

nsontung
Автор

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.?

shahul.hameed.m
Автор

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

Автор

How can we define the image name how can I get i am confused bit here

rishabagarwal
Автор

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?

tufisii
Автор

So, in order to keep the webpage alive for 24x7 what is the procedure they do in organization if server goes down ?

shahul.hameed.m
Автор

how to pull docker containers from docker hub in jenkins?

bluesteel
Автор

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

skateforlife
Автор

What type of language you have used inside script { }
And
Can we use any coding language to create pipeline in jenkins

anuradhatalla