How to Use Jenkins to Build and Run an Image Using Docker

preview_player
Показать описание
Need help with your Jenkins questions?

Timecodes ⏱:
0:00 Intro
0:38 Follow along instructions
1:17 Docker "Hello There"
2:42 Build the image using Docker
3:14 Run the image
3:34 A more practical image
4:26 A better "Hello There"
4:57 More image changes
6:24 Using images for easier application deployment
6:57 Closing

Refer to the 4 branches for each of the sections:

How to Install Jenkins on CentOS 7 Using Ansible and JCasC

✅ CloudBees on Twitter:

✅ Darin on Twitter:
Рекомендации по теме
Комментарии
Автор

Great video! Just curious, I noticed he said you need an agent with Docker installed on it. Currently, I am actually running Jenkins as a Docker image. Are there any examples of how to build a docker image INSIDE a docker container?

josephkeller
Автор

No information how to create and setup jobs or pipelines in Jenkins for run Jenkinsfile

dimanenator
Автор

this is nice, but useless for production. what is the point to run application on docker agent's host?

IvanFedulov
Автор

this video is beyond awesome, for real! Thank you so much for the simplicity and clarity! One day this effort you're making will pay off!

dimasveliz
Автор

thank god I found a video without an Indian in it

muslimk
Автор

Thank you for the video.

sh does not seem to work for me on Windows 10 so I tried bat, but do I still need to install docker ?

I'm asking because I'm getting unrecognised command. In other words, how will Jenkins execute docker buid, docker run, etc. ?

imanuelgreenfeld
Автор

Seriously? Use bash commands to run docker containers with jenkins? How do I pass a variable as a tag? How do I version images? How do I push an image to the repository? Bash again? No thanks, Ansible has much better tools for this sort of thing.

temniytroll