Page MenuHomeDevCentral

D1412.id3601.diff
No OneTemporary

D1412.id3601.diff

diff --git a/pillar/paas/docker.sls b/pillar/paas/docker.sls
--- a/pillar/paas/docker.sls
+++ b/pillar/paas/docker.sls
@@ -25,3 +25,7 @@
# Continuous deployment jobs
- jenkinsci/jenkins
- nasqueron/jenkins-slave-php
+
+docker_containers:
+ equatower:
+ - ci
diff --git a/roles/paas-docker/containers/ci.sls b/roles/paas-docker/containers/ci.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/containers/ci.sls
@@ -0,0 +1,31 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-11
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Home directory
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+/srv/jenkins/jenkins_home:
+ file.directory:
+ - uid: 1000
+ - gid: 1000
+ - makedirs: True
+
+# -------------------------------------------------------------
+# Container
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+jenkins_cd:
+ docker_container.running:
+ - detach: True
+ - interactive: True
+ - image: jenkinsci/jenkins
+ - binds: /srv/jenkins/jenkins_home:/var/jenkins_home
+ - ports_bindings:
+ - 38080:8080 # J2EE
+ - 50000:5000 # jenkins master/slaves communication
diff --git a/roles/paas-docker/containers/init.sls b/roles/paas-docker/containers/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/containers/init.sls
@@ -0,0 +1,15 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-11
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% set containers = salt['pillar.get']('docker_containers:' + grains['id'], []) %}
+
+include:
+{% for container in containers %}
+ - .{{ container }}
+{% endfor %}
+

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 30, 14:11 (21 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2273047
Default Alt Text
D1412.id3601.diff (2 KB)

Event Timeline