2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-24 14:31:51 +01:00

add jenkins/inbound-agent

This commit is contained in:
kev
2020-09-23 15:54:24 +08:00
parent a7876949a1
commit 92bb37687b
6 changed files with 108 additions and 17 deletions

22
jenkins/agent/README.md Normal file
View File

@@ -0,0 +1,22 @@
jenkins/inbound-agent
=====================
## how to
- Enable TCP port 50000 for inbound agents: http://jenkins:8080/configureSecurity/
- Create New Node: http://jenkins:8080/computer/
- Get Jenkins Secret: http://jenkins:8080/script/
```groovy
for (aSlave in hudson.model.Hudson.instance.slaves){
println aSlave.name + "," + aSlave.getComputer().getJnlpMac()
}
```
## up and running
```bash
$ mkdir -p data
$ chown 1000:1000 data
$ docker-compose up -d
```

View File

@@ -0,0 +1,16 @@
version: "3.8"
services:
inbound-agent:
image: jenkins/inbound-agent
init: true
container_name: docker-inbound-agent
volumes:
- ./data:/home/jenkins
environment:
- JENKINS_URL=http://jenkins.easypi.pro:8080
- JENKINS_SECRET=***************************
- JENKINS_AGENT_NAME=docker-inbound-agent
- JENKINS_AGENT_WORKDIR=/home/jenkins/agent
restart: unless-stopped