https://github.com/signiant/docker-jenkins-centos7-java7
Jenkins buildnode for java on CentOS
https://github.com/signiant/docker-jenkins-centos7-java7
Last synced: 11 months ago
JSON representation
Jenkins buildnode for java on CentOS
- Host: GitHub
- URL: https://github.com/signiant/docker-jenkins-centos7-java7
- Owner: Signiant
- License: mit
- Created: 2015-07-28T19:50:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-12-14T16:37:03.000Z (over 8 years ago)
- Last Synced: 2025-03-05T13:49:03.327Z (about 1 year ago)
- Language: Shell
- Size: 3.56 MB
- Stars: 1
- Watchers: 24
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-jenkins-centos7-java7
Container for a Jenkins build node that is used to build java projects
## Variables:
- BUILD_USER : the OS user to run the Jenkins slave as/perform all actions (default: bldmgr)
- RUN_SLAVE: If set, will start the Jenkins JNLP slave software; otherwise, runs sshd
- MASTER_ADDR : the name or IP/port of the Jenkins master server
- SLAVE_ID: The name of the slave already pre-created in the Jenkins master
- SECRET: The secret for the Jenkins slave (obtained in the Jenkins master UI for this slave)
## Example Docker run
```
#!/bin/bash
docker run -d -e "SLAVE_ID=java-slave-1" \
-e "MASTER_ADDR=jenkinsmaster1.acme.com:8080" \
-e "RUN_SLAVE=1" \
-e "SECRET=12345" \
-v /mount/credentials:/credentials \
-v /Releases:/var/lib/jenkins/Releases \
mycontainer
```