FIX: Ports are not being exposed.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Wed, 27 Apr 2016 16:10:39 +0000 (00:10 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Wed, 27 Apr 2016 16:10:39 +0000 (00:10 +0800)
launcher

index 25ca6dfc57d723e4644910d9f8347a1b443746cf..02687299951a029d2ebff763b22ca258e24e3698 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -412,6 +412,9 @@ run_start() {
 
    host_run
 
+   ports=`cat $config_file | $docker_path run $user_args --rm -i -a stdout -a stdin $image ruby -e \
+         "require 'yaml'; puts YAML.load(STDIN.readlines.join)['expose'].map{|p| \"-p #{p}\"}.join(' ')"`
+
    docker_args=`cat $config_file | $docker_path run $user_args --rm -i -a stdout -a stdin $image ruby -e \
           "require 'yaml'; puts YAML.load(STDIN.readlines.join)['docker_args']"`