fedora-cloud / Fedora-Dockerfiles

Fedora Dockerfiles - No longer maintained. See: https://fedoraproject.org/wiki/Changes/Layered_Docker_Image_Build_Service
GNU General Public License v2.0
401 stars 253 forks source link

Adding jenkins fedora slave #225

Closed surajnarwade closed 7 years ago

surajnarwade commented 8 years ago

This is fedora jenkins slave dockerfile which can be used when docker enviroment is used as slave with jenkins along with docker plugin.

scollier commented 8 years ago

Hi @surajnarwade How do I test that this works? Can you please include some simple instructions? Thanks.

surajnarwade commented 8 years ago

Hi @scollier , thanks for reply, here is instructions to be followed:

  1. install docker plugin in jenkins
  2. add this line -H fd:// -H tcp://0.0.0.0:2376 in addition to ExecStart, so it should look like this, ExecStart=/usr/bin/docker daemon -H fd:// -H tcp://0.0.0.0:2376
  3. sudo systemctl daemon-reload
  4. sudo systemctl restart docker 5.goto jenkins> manage jenkins > configure system > Add new cloud 6.select docker cloud, fill required details docker URL(:2376), label, remote filling system to /home/jenkins , docker image name(this docker image) and start to configure job.
  5. put label of docker cloud in restrict where this project can be run. and build the job.

Thanks.

scollier commented 8 years ago

Hi @surajnarwade please add those instructions to the README, so that when people clone the repo, they know what to do and don't have to refer to this PR.

Thanks.

surajnarwade commented 8 years ago

@scollier @baude I have updated the patchset. Thanks