blob: 4a8f6b816811d5e1b678765aa975acfec9c4297d [file] [log] [blame] [view]
Michael Neale2dedbdb2014-07-09 16:58:10 +10001# This is a WIP
2
Michael Neale711e12e2014-07-16 11:02:46 +10003The Jenkins Continuous Integration and Continuous Delivery server.
4
5This is a fully functional Jenkins server.
6
7Note you can run builds on the master (out of the box) buf if you want to attach build slave servers: make sure you map the port: ```-p 50000:50000```.
Michael Neale71eb3ab2014-07-09 18:04:01 +10008
9To run:
10
11```
Michael Neale709841c2014-07-14 12:16:58 +100012docker run -p 8080:8080 jenkins
Michael Neale71eb3ab2014-07-09 18:04:01 +100013```
14
Michael Neale711e12e2014-07-16 11:02:46 +100015This will store the workspace in /var/jenkins_home. All Jenkins data lives in there - including plugins and configuration. You will probably want to make that a persistent volume:
Michael Neale71eb3ab2014-07-09 18:04:01 +100016
17```
Michael Neale709841c2014-07-14 12:16:58 +100018docker run --name myjenkins -p 8080:8080 -v /var/jenkins_home jenkins
Michael Neale71eb3ab2014-07-09 18:04:01 +100019```
20
Michael Neale709841c2014-07-14 12:16:58 +100021The volume for the "myjenkins" named container will then be persistent.
22
23You can also bind mount in a volume from the host:
24
Michael Neale709841c2014-07-14 12:16:58 +100025First, ensure that /your/home is accessible by the jenkins user in container (jenkins user - uid 102 normally - or use -u root), then:
Michael Neale71eb3ab2014-07-09 18:04:01 +100026
27```
Michael Neale709841c2014-07-14 12:16:58 +100028docker run -p 8080:8080 -v /your/home:/var/jenkins_home jenkins
Michael Neale71eb3ab2014-07-09 18:04:01 +100029```
30
Michael Neale709841c2014-07-14 12:16:58 +100031
32