mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-25 09:23:31 +01:00
make -t work and implement many tranforms
This commit is contained in:
parent
f7530624e1
commit
264b048df9
@ -69,8 +69,8 @@ def adj_hosts(services, cnt, dst="127.0.0.1"):
|
||||
common_extra_hosts = []
|
||||
for srv, cnts in services.items():
|
||||
common_extra_hosts.append("{}:{}".format(srv, dst))
|
||||
for cnt in cnts:
|
||||
common_extra_hosts.append("{}:{}".format(cnt, dst))
|
||||
for cnt0 in cnts:
|
||||
common_extra_hosts.append("{}:{}".format(cnt0, dst))
|
||||
extra_hosts = list(cnt.get("extra_hosts", []))
|
||||
extra_hosts.extend(common_extra_hosts)
|
||||
# link aliases
|
||||
@ -256,7 +256,7 @@ def up(project_name, dirname, pods, containers):
|
||||
args=[
|
||||
"podman", "pod", "create",
|
||||
"--name={}".format(pod["name"]),
|
||||
"--share", "cgroup,ipc",
|
||||
"--share", "cgroup,uts",
|
||||
]
|
||||
ports = pod.get("ports") or []
|
||||
for i in ports:
|
||||
|
Loading…
Reference in New Issue
Block a user