Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emad-elsaid/jenkins-docker-compose
A setup to run jenkins with docker compose
https://github.com/emad-elsaid/jenkins-docker-compose
docker docker-compose jenkins
Last synced: 18 days ago
JSON representation
A setup to run jenkins with docker compose
- Host: GitHub
- URL: https://github.com/emad-elsaid/jenkins-docker-compose
- Owner: emad-elsaid
- Created: 2019-05-08T15:23:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-08T18:03:52.000Z (over 5 years ago)
- Last Synced: 2024-11-17T14:47:37.476Z (3 months ago)
- Topics: docker, docker-compose, jenkins
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
JENKINS
=======This repo contains a docker-compose file that starts a jenkins container and a
jenkins slave contains secured in a docker-compose network## USAGE
1. clone this repo
1. install docker and docker-compose if you don't have them
1. run `docker-compose build` to build both master and slave images
1. run `docker-compnse run` to run both containers at the same time
1. access jenkins from your browser `localhost:8080`
1. the password jenkins asks for should appear in your terminal while the
container is starting## Adding the slave node
Go to `http://localhost:8080/computer/` add "new node", the slave username and
password are `jenkins`, use ssh to connect with these credentials, and choose
not to verify the Host key, the ssh host is simply `slave`.Also go to the master slave `http://localhost:8080/computer/(master)/configure`
and choose usage "only build jobs with label expressions matching this node" to
use the slave to execute your jobs.## Note
if you turned off the containers all data related to the master will be saved in a
docker volume, slave will be resetted, that's useful if things went south on the
slave and you want to reset it, execute `docker-compose down` then run the
cotainers again.