https://github.com/osodevops/docker-jenkins-master
Jenkins Master with all the bells and whistles
https://github.com/osodevops/docker-jenkins-master
docker jenkins jenkins-plugin shell-script
Last synced: 1 day ago
JSON representation
Jenkins Master with all the bells and whistles
- Host: GitHub
- URL: https://github.com/osodevops/docker-jenkins-master
- Owner: osodevops
- Created: 2020-11-27T11:15:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-26T06:29:13.000Z (over 4 years ago)
- Last Synced: 2024-05-01T11:29:25.265Z (almost 2 years ago)
- Topics: docker, jenkins, jenkins-plugin, shell-script
- Language: Dockerfile
- Homepage: https://oso.sh
- Size: 10.7 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jenkins Master running in Docker
[![README Header][readme_header_img]][readme_header_link]
A Jenkins master comes with the basic installation of Jenkins, and in this configuration, the master handles all the tasks for your build system.
---
## Usage
### Running the container
```bash
$ docker run -d -p 8080:8080 -p 50000:50000 --env-file=./env.file --name jenkins jenkins
```
You have to modify the env.file file with the following parameters:
- __JENKINS_URL__: is the external URL of your jenkins (ex. "http://localhost:8080/")
- __JENKINS_ADMIN__: is the Jenkins administrator
- __JENKINS_PASSWORD__: is the password of the Jenkins administrator
## Examples
To build and run, follow this example
```shell
$ docker build -t jenkins .
```
### Running slaves
If you would like to start one (or several) Jenkins slaves.
```shell
$docker build -f DockerfileSlave -t jenkins-slave .
$docker run -d -v /var/run/docker.sock:/var/run/docker.sock --rm --name jenkins-slave jenkins-slave -url
```
- __master-url__: is the URL of your jenkins
- __ secret__: is the agent secret
- __host__: is the agent name
Add `-v /srv:/srv --privileged` on the target's slave
### Plugins
You may update the `plugins.txt` which what need, please be sure to update the Configuration as code plugin configuration file: `jenkins.yaml`
## Related Projects
Check out these related projects.
- [Jenkins Slave Node running in Docker](https://github.com/osodevops/docker-jenkins-slave) - The Jenkins master acts to schedule the jobs and assign slaves and send builds to slaves to execute the jobs.
- [Jenkins Operations Center Tutorial (CJOC)](https://github.com/osodevops/docker-jenkins-cjoc) - CJOC is used for managing multiple Jenkins Masters. It makes it much easier to scale Jenkins horizontally, as it makes it possible to share build nodes between masters.
## Need some help
File a GitHub [issue](https://github.com/osodevops/docker-jenkins-master/issues), send us an [email][email] or [tweet us][twitter].
## The legals
Copyright © 2017-2021 [OSO](https://oso.sh) | See [LICENCE](LICENSE) for full details.
[
](https://oso.sh/who-we-are/)
## Who we are
We at [OSO][website] help teams to adopt emerging technologies and solutions to boost their competitiveness, operational excellence and introduce meaningful innovations that drive real business growth. Our developer-first culture, combined with our cross-industry experience and battle-tested delivery methods allow us to implement the most impactful solutions for your business.
Looking for support applying emerging technologies in your business? We’d love to hear from you, get in touch by [email][email]
Start adopting new technologies by checking out [our other projects][github], [follow us on twitter][twitter], [join our team of leaders and challengers][careers], or [contact us][contact] to find the right technology to support your business.[![Beacon][beacon]][website]
[logo]: https://oso-public-resources.s3.eu-west-1.amazonaws.com/oso-logo-green.png
[website]: https://oso.sh?utm_source=github&utm_medium=readme&utm_campaign=osodevops/docker-jenkins-master&utm_content=website
[github]: https://github.com/osodevops?utm_source=github&utm_medium=readme&utm_campaign=osodevops/docker-jenkins-master&utm_content=github
[careers]: https://oso.sh/careers/?utm_source=github&utm_medium=readme&utm_campaign=osodevops/docker-jenkins-master&utm_content=careers
[contact]: https://oso.sh/contact/?utm_source=github&utm_medium=readme&utm_campaign=osodevops/docker-jenkins-master&utm_content=contact
[linkedin]: https://www.linkedin.com/company/oso-devops?utm_source=github&utm_medium=readme&utm_campaign=osodevops/docker-jenkins-master&utm_content=linkedin
[twitter]: https://twitter.com/osodevops?utm_source=github&utm_medium=readme&utm_campaign=osodevops/docker-jenkins-master&utm_content=twitter
[email]: mailto:enquiries@oso.sh?utm_source=github&utm_medium=readme&utm_campaign=osodevops/docker-jenkins-master&utm_content=email
[readme_header_img]: https://oso-public-resources.s3.eu-west-1.amazonaws.com/oso-animation.gif
[readme_header_link]: https://oso.sh/what-we-do/?utm_source=github&utm_medium=readme&utm_campaign=osodevops/docker-jenkins-master&utm_content=readme_header_link
[beacon]: https://github-analyics.ew.r.appspot.com/G-WV0Q3HYW08/osodevops/docker-jenkins-master?pixel&cs=github&cm=readme&an=docker-jenkins-master