Current code
This commit is contained in:
29
README.md
29
README.md
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user