mirror of
https://github.com/containers/podman-compose.git
synced 2025-04-24 01:18:54 +02:00
Fixes #908: Add support for multi-line environment files
Signed-off-by: Hedayat Vatankhah <hedayat.fwd@gmail.com>
This commit is contained in:
parent
04b107805a
commit
f3e9a96c96
@ -1072,7 +1072,11 @@ async def container_to_args(compose, cnt, detached=True):
|
|||||||
if not required:
|
if not required:
|
||||||
continue
|
continue
|
||||||
raise ValueError("Env file at {} does not exist".format(i))
|
raise ValueError("Env file at {} does not exist".format(i))
|
||||||
podman_args.extend(["--env-file", i])
|
dotenv_dict = {}
|
||||||
|
dotenv_dict = dotenv_to_dict(i)
|
||||||
|
env = norm_as_list(dotenv_dict)
|
||||||
|
for e in env:
|
||||||
|
podman_args.extend(["-e", e])
|
||||||
env = norm_as_list(cnt.get("environment", {}))
|
env = norm_as_list(cnt.get("environment", {}))
|
||||||
for e in env:
|
for e in env:
|
||||||
podman_args.extend(["-e", e])
|
podman_args.extend(["-e", e])
|
||||||
|
Loading…
Reference in New Issue
Block a user