FEATURE: hostname for instances so we can tell who is who
authorSam <sam.saffron@gmail.com>
Mon, 3 Feb 2014 06:02:40 +0000 (17:02 +1100)
committerSam <sam.saffron@gmail.com>
Mon, 3 Feb 2014 06:02:40 +0000 (17:02 +1100)
launcher

index a6dbe6d471f9895f68a81745e598c198bc954ccb..e81c63e554abc37c622bf308006972c00d60fa6f 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -214,7 +214,7 @@ case "$command" in
              exit 1
            fi
 
-           docker run "${env[@]}" -e DOCKER_HOST_IP=$docker_ip -name $config -cidfile $cidfile $ports \
+           docker run "${env[@]}" -h "`hostname`-$config" -e DOCKER_HOST_IP=$docker_ip -name $config -cidfile $cidfile $ports \
                       -d $volumes $local_discourse/$config /usr/bin/runsvdir -P /etc/service
 
            exit 0