forked from extern/podman-compose
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 = []
|
common_extra_hosts = []
|
||||||
for srv, cnts in services.items():
|
for srv, cnts in services.items():
|
||||||
common_extra_hosts.append("{}:{}".format(srv, dst))
|
common_extra_hosts.append("{}:{}".format(srv, dst))
|
||||||
for cnt in cnts:
|
for cnt0 in cnts:
|
||||||
common_extra_hosts.append("{}:{}".format(cnt, dst))
|
common_extra_hosts.append("{}:{}".format(cnt0, dst))
|
||||||
extra_hosts = list(cnt.get("extra_hosts", []))
|
extra_hosts = list(cnt.get("extra_hosts", []))
|
||||||
extra_hosts.extend(common_extra_hosts)
|
extra_hosts.extend(common_extra_hosts)
|
||||||
# link aliases
|
# link aliases
|
||||||
@ -256,7 +256,7 @@ def up(project_name, dirname, pods, containers):
|
|||||||
args=[
|
args=[
|
||||||
"podman", "pod", "create",
|
"podman", "pod", "create",
|
||||||
"--name={}".format(pod["name"]),
|
"--name={}".format(pod["name"]),
|
||||||
"--share", "cgroup,ipc",
|
"--share", "cgroup,uts",
|
||||||
]
|
]
|
||||||
ports = pod.get("ports") or []
|
ports = pod.get("ports") or []
|
||||||
for i in ports:
|
for i in ports:
|
||||||
|
Loading…
Reference in New Issue
Block a user