Page MenuHomeDevCentral

D1412.id3602.diff
No OneTemporary

D1412.id3602.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:
+ - jenkins # CD
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 %}
+
diff --git a/roles/paas-docker/containers/jenkins.sls b/roles/paas-docker/containers/jenkins.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/containers/jenkins.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

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 04:32 (21 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2265885
Default Alt Text
D1412.id3602.diff (2 KB)

Event Timeline