From 34eb49ed5176ef76f90a00747aad7dba531efc68 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 4 Feb 2021 11:54:26 +0100 Subject: [PATCH] chg: [compose] provide ``$HOST_COMPOSE_LAUNCHER_OPTS`` in environment Indeed, without this, charms can't access the real content of the file. Signed-off-by: Valentin Lab --- bin/compose | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/compose b/bin/compose index e16217d..7085ba6 100755 --- a/bin/compose +++ b/bin/compose @@ -933,6 +933,7 @@ mk_docker_run_options() { dest="/var/lib/compose/sessions/$UID-$hash" additional_docker_run_opts=( "-v" "$SESSION_DIR/$UID-$hash:$dest:ro" + "-e" "HOST_COMPOSE_LAUNCHER_OPTS=$SESSION_DIR/$UID-$hash" "-e" "COMPOSE_LAUNCHER_OPTS=$dest" "-e" "COMPOSE_LAUNCHER_BIN=$COMPOSE_LAUNCHER_BIN" )