Skip to content

Commit

Permalink
FIXES #425: pass --requires
Browse files Browse the repository at this point in the history
  • Loading branch information
muayyad-alsadi committed Feb 14, 2022
1 parent b9b2f83 commit d6e21dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,11 @@ def container_to_args(compose, cnt, detached=True):

if pod:
podman_args.append('--pod={}'.format(pod))
deps = []
for dep_srv in (cnt.get("_deps", None) or []):
deps.extend(compose.container_names_by_service.get(dep_srv, None) or [])
if deps:
podman_args.append('--requires={}'.format(",".join(deps)))
sec = norm_as_list(cnt.get("security_opt", None))
for s in sec:
podman_args.extend(['--security-opt', s])
Expand Down

0 comments on commit d6e21dc

Please sign in to comment.