Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3908986
D2699.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
988 B
Referenced Files
None
Subscribers
None
D2699.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D2699: Provide jenkins wrapper
Attached
Detach File
Event Timeline
Log In to Comment