Page MenuHomeDevCentral

D2699.diff
No OneTemporary

D2699.diff

diff --git a/roles/paas-docker/wrappers/files/jenkins.sh b/roles/paas-docker/wrappers/files/jenkins.sh
new file mode 100755
--- /dev/null
+++ b/roles/paas-docker/wrappers/files/jenkins.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+# Usage: jenkins <container name> <command> [args]
+
+CONTAINER_IP=$(sudo docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' "$1")
+shift
+
+ssh -l "$USER" -p 50022 "$CONTAINER_IP" $*
diff --git a/roles/paas-docker/wrappers/init.sls b/roles/paas-docker/wrappers/init.sls
--- a/roles/paas-docker/wrappers/init.sls
+++ b/roles/paas-docker/wrappers/init.sls
@@ -12,7 +12,7 @@
# Wrapper binaries
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-{% for command in ['certbot', 'phpbb', 'mysql', 'sentry', 'openfire'] %}
+{% for command in ['certbot', 'jenkins', 'phpbb', 'mysql', 'sentry', 'openfire'] %}
{{ dirs.bin }}/{{ command }}:
file.managed:
- source: salt://roles/paas-docker/wrappers/files/{{ command }}.sh

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 17:47 (20 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2306647
Default Alt Text
D2699.diff (988 B)

Event Timeline