浏览代码

If COMPOSE_FILE is define then set this variable to the container

Signed-off-by: Pascal Vibet <[email protected]>
Pascal Vibet 8 年之前
父节点
当前提交
c9ff9023b2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      script/run/run.sh

+ 1 - 0
script/run/run.sh

@@ -35,6 +35,7 @@ if [ "$(pwd)" != '/' ]; then
     VOLUMES="-v $(pwd):$(pwd)"
 fi
 if [ -n "$COMPOSE_FILE" ]; then
+    COMPOSE_OPTIONS="$COMPOSE_OPTIONS -e COMPOSE_FILE=$COMPOSE_FILE"
     compose_dir=$(realpath $(dirname $COMPOSE_FILE))
 fi
 # TODO: also check --file argument