Explorar el Código

If COMPOSE_FILE is define then set this variable to the container

Signed-off-by: Pascal Vibet <[email protected]>
Pascal Vibet hace 8 años
padre
commit
c9ff9023b2
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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