How to Setup Docker Containers As Build Agents for Jenkins

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

Timecodes ⏱:

00:00 Introduction
00:09 Overview
00:33 Starting point
00:55 Install Docker Pipeline plugin
01:44 Create a job using a global agent
03:46 Create a job using per stage agents
05:54 Create a job using an agent based on a Dockerfile
08:12 Why use an image as a build agent?

#jenkinstutorial #jenkinspipeline #docker

Information referenced in this video:

Jenkins LTS 2.289.2

Using Docker with Pipeline

jenkins-example-docker repository:

CloudBees on Twitter:

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

Dockerfile based agents was the biggest game changer for Jenkins for me.

henryborchers
Автор

Excellent narrative style. Really appreciate your efforts ❤

vinaykumar-qqwq
Автор

Amazing teaching. Just awesome and thank you

basamnath
Автор

Brilliantly done. Great Information. Thanks.

staj
Автор

Great video! Automated deployment on a box that only exists while Jenkins is building. Surreal :)

kimwkahler
Автор

Hi Darin

You and your videos are awesome and very informative as always. But could you please make a video on how to use docker as dynamic slave agents by building a custom docker image and use that whenever there is requirement in the job.

Thanks
Mithun

mithuntechtraining
Автор

Thanks for this awesome video. Keep sharing more! One question: What if I want to use Jenkinsfile-3 with node image, curl and git but I also want to have docker installed on this image? What would be the dockerfile code like? Thanks in the advance. :D

kushsharma
Автор

This seems fantastic. One question : If we have Jenkins running as a docker image. Is there any problem or consideration with the setup?

Nmdae
Автор

how does it run at agent? is there any additional config settings missing? Everytime I run it will execute in master and throw error docker not found. any help?

sambasivam
Автор

Hi Darin, I've been following your examples, thank you. I'm not sure if you answer questions here, but I've got a docker-compose setup with nginx and the blueocean jenkins container (created from ansible) working nicely, along with configuration as code. I'm trying to create a build agent but am stuck with and haven't been able to resolve 'got permission denied while trying to connect to the docker daemon socket'. I'd like the agent to be another docker container in docker-compose based on the inbound-agent container. Am I going around this ok, or should I just give in and create a real vm as an agent rather than a docker one?

anthonywhitehead
Автор

HI Darin,

I have my Jenkins running on docker so how do i create the docker build agents. Could you please share what additional configurations are required for that

riteshwalia
Автор

Docker was not found. I'm guessing there are some other prerequisits other than the plugins. The documention of the docker pipeline plugin didn't help me as well.

scribblespoon
Автор

Hi Darin. Could you make a video showing how to execute these steps inside a jenkins docker image?

pazfelipe
Автор

Hi Darin, I have a doubt that for building docker image should we need to run jenkins inisde docker container or from war file we can use jenkins?

sathishsubramanian
Автор

What if the docker host is out there on network as opposed to on Jenkins host?

master
Автор

Hello Darin currently iam running jenkins from ec2 is there any possibility to move from ec2 to ecs without loosing my data and configuration

vijjisanthi
Автор

Thanks Sir.. Can we use a Jenkins upstream job to create multiple slaves ? if yes please explain.

lalitshukla
Автор

Hi Darren, just wondering if agent1 is running inside a docker container as I am currently seeing errors when trying to follow the guide you made in here?

usucyev
Автор

sir i am getting this error while using docker as agent .What shud i do please?

failed to register layer: Error processing tar file(exit status 1): open /etc/rdma/modules/roce.conf: no space left on device

yashhirulkar
Автор

Hey how do I setup windows server which contains docker deamon running in it as agent.. so that I can run my groovy pipeline script in dynamically created container on agent ?

Rahul-hxdz