Current code

This commit is contained in:
root
2022-08-08 11:04:40 +02:00
parent a586d3f63d
commit 68a2b0f767
3 changed files with 66 additions and 1 deletions

View File

@@ -1,3 +1,30 @@
# mybuildagent
My Docker Container for Jenkins Agents
My Docker Container for Jenkins Agents
This is the compose file I use.
``` docker-compose
version: '3'
services:
jenkins:
image: jenkins/jenkins:lts
restart: always
volumes:
- /dockerdata/jenkins:/var/jenkins_home
ports:
- 127.0.0.1:9999:port
- 127.0.0.1:53805:port
jenkins-agent:
build: mybuildagent
volumes:
- /dockerdata/jenkins_agent:/home/jenkins/agent
restart: always
environment:
- JENKINS_URL=http://jenkins:firstport
- JENKINS_SECRET=secret
- JENKINS_AGENT_NAME=Agentname
- JENKINS_AGENT_WORKDIR=/home/jenkins/agent
```