Sfoglia il codice sorgente

If COMPOSE_FILE is define then set this variable to the container

Signed-off-by: Pascal Vibet <[email protected]>
Pascal Vibet 8 anni fa
parent
commit
c9ff9023b2
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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