Skip to content

Commit

Permalink
Fixes containers#908: Add support for multi-line environment files
Browse files Browse the repository at this point in the history
Signed-off-by: Hedayat Vatankhah <[email protected]>
  • Loading branch information
hedayat committed May 7, 2024
1 parent 3965cb3 commit 4dc16c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,11 @@ async def container_to_args(compose, cnt, detached=True):
if not required:
continue
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", {}))
for e in env:
podman_args.extend(["-e", e])
Expand Down

0 comments on commit 4dc16c8

Please sign in to comment.