From c9ff9023b265644ee6053d8946e7eb39f47aa840 Mon Sep 17 00:00:00 2001 From: Pascal Vibet Date: Wed, 26 Apr 2017 13:50:22 +0200 Subject: [PATCH] If COMPOSE_FILE is define then set this variable to the container Signed-off-by: Pascal Vibet --- script/run/run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/script/run/run.sh b/script/run/run.sh index e697d1f6d..d1e1fabaa 100755 --- a/script/run/run.sh +++ b/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