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:
22
jenkins/agent/README.md
Normal file
22
jenkins/agent/README.md
Normal 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
|
||||
```
|
||||
16
jenkins/agent/docker-compose.yml
Normal file
16
jenkins/agent/docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user