Requirements for Jenkins agent in docker container

9 views
Skip to first unread message

Zach LaCelle

unread,
Oct 22, 2018, 2:25:37 PM10/22/18
to jenkins...@googlegroups.com
Hello,

What does Jenkins need to run jobs in a Docker container? I know that the jenkinsci/slave Docker image works, but if I want to create a new image based off of a different origin, what process, environment variables, etc need to be running?

This would be using the "Docker Attach" methodology, but I assume the list is similar for SSH (minus the SSH server).

For example, looks like it needs:
* openjdk 8
* a Jenkins user/group
* slave.jar at /usr/share/jenkins/slave.jar
* /home/jenkins/.jenkins
* /home/jenkins/agent
* WORKDIR set to /home/jenkins
* ENV AGENT_WORKDIR set to /home/jenkins/agent
Reply all
Reply to author
Forward
0 new messages