Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carlossg/jenkins-slave-docker
Jenkins slave to run in Docker
https://github.com/carlossg/jenkins-slave-docker
Last synced: about 1 month ago
JSON representation
Jenkins slave to run in Docker
- Host: GitHub
- URL: https://github.com/carlossg/jenkins-slave-docker
- Owner: carlossg
- Created: 2015-01-27T12:55:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-17T11:18:58.000Z (about 9 years ago)
- Last Synced: 2023-04-15T01:27:16.007Z (over 1 year ago)
- Language: Shell
- Size: 187 KB
- Stars: 18
- Watchers: 2
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jenkins slave
Moved to [`jenkinsci/jnlp-slave`](https://hub.docker.com/r/jenkinsci/jnlp-slave/)
[`csanchez/jenkins-slave`](https://hub.docker.com/r/csanchez/jenkins-slave/)
A [Jenkins](https://jenkins-ci.org) slave using JNLP.
See [Jenkins Distributed builds](https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds) for more info.
For a container with swarm plugin see
[`csanchez/jenkins-swarm-slave`](https://registry.hub.docker.com/u/csanchez/jenkins-swarm-slave/)## Running
To run a Docker container
docker run csanchez/jenkins-slave -url http://jenkins-server:port
If the command line options are not set it will try to use environment variables,
including Kubernetes set variables for services `jenkins` and `jenkins-slave`.* `JENKINS_URL`: url for the Jenkins server
* `JENKINS_SERVICE_HOST` and `JENKINS_SERVICE_PORT`: will be used to compose the url if the previous is not present.
* `JENKINS_TUNNEL`: (`HOST:PORT`) connect to this slave host and port instead of Jenkins server
* `JENKINS_SLAVE_SERVICE_HOST` and `JENKINS_SLAVE_SERVICE_PORT`: will be used to compose the tunnel argument if the previous is not present.# Building
docker build -t csanchez/jenkins-slave .