jenkins Dynamic slaves

Опубликовано: 22 Октябрь 2024
на канале: NguruTheGuru
130
3

In this video, we'll discuss the benefits of slave Jenkins for your team.
We'll start by setting up a virtual machine with Docker and connecting it to our master Jenkins. We'll also set up some slave plugins to make sure that you're getting all the benefits of having slaves: scalability and better resource utilization.

RESOURCES
Dockerfile for slave image: https://github.com/bretton7700/slaves...

PROCESS
1. master jenkins
2. new ubuntu vm
open up port 4243
3. install docker on slave
sudo apt install docker.io -y
4. change the ExecStart
sudo vim /lib/systemd/system/docker.service

ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock
5. restart docker Service
sudo systemctl daemon-reload
sudo service docker restart

6.Ensure api is working
curl http://yourip:4243/version

7. build the jenkins slave image
git clone https://github.com/bretton7700/slaves...
sudo docker build -t slaveimage .

FOLLOW ME ON:

🐦 Twitter:   / bretton73441979  
👀 LinkedIn:   / gitonga-b.  .
📷 Instagram:   / brettontelvin  
👨‍💻 GitHub Projects: https://github.com/bretton7700