projects
/
discourse_docker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add a special env var DOCKER_HOST_IP to all images
[discourse_docker.git]
/
templates
/
sshd.template.yml
diff --git
a/templates/sshd.template.yml
b/templates/sshd.template.yml
index 327ad29eb660dc6c75f5912d44202126a5f80fe8..7325262b439e56e6fadfe1bcec7b5896d6372250 100644
(file)
--- a/
templates/sshd.template.yml
+++ b/
templates/sshd.template.yml
@@
-15,6
+15,8
@@
run:
contents: |
#!/bin/sh
exec 2>&1
+ echo export DOCKER_HOST_IP=$DOCKER_HOST_IP > /etc/profile.d/docker.sh
+ chmod +x /etc/profile.d/docker.sh
exec /usr/sbin/sshd -D -e
- exec: