aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Copeland <ben.copeland@linaro.org>2017-10-19 16:26:40 +0100
committerBen Copeland <ben.copeland@linaro.org>2017-10-19 16:26:40 +0100
commit1e71461e1b94dd0c7779d7ee904d9d2402a67202 (patch)
tree79aa46021b75c442da019a1f2c7b6449f76537d3
parent1edc0429fe3b3bbd77243e580f1f412344be98e7 (diff)
include readme
-rw-r--r--README.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..49bb0e6
--- /dev/null
+++ b/README.md
@@ -0,0 +1,27 @@
+Yet Another Docker Plugin config builder
+=======
+
+Yet Another Docker Plugib (yadp) is extremely hard to manage, when running multiple slaves with multiple images. Due to the way Jenkins displays the configuration page. YADP provides a [!groovy script](https://github.com/samrocketman/jenkins-bootstrap-jervis/blob/master/settings.groovy.EXAMPLE) which builds a json array to populate the config in Jenkins.
+
+This script uses yaml and jinja2 to generate a java jsonarray to build the configuration, using a !include constructor in the yaml file, allowing the ability to template up docker_images, since many of our slaves run the same image, it lessens repetition.
+
+Usage
+=======
+
+####hosts.yml
+List your jenkin_slaves here
+```
+- host1:
+ cloud_name: host1.example.org
+ docker-url: tcp://0.0.0.0:2375
+ docker_templates: !include external_template_file.yml
+
+- host2:
+ cloud_name: host2
+ docker-url: tcp://0.0.0.1:2375
+ docker_templates:
+ - xenial-amd64:
+ docker_image_name: 'ubuntu:latest'
+ max_instances: '1'
+ labels: 'docker-ubuntu'
+```