mirror of
https://github.com/containers/podman-compose.git
synced 2024-12-01 20:33:57 +01:00
#379: create a pod
This commit is contained in:
parent
d6e21dc752
commit
80e852717d
@ -268,10 +268,12 @@ def norm_ulimit(inner_value):
|
|||||||
# return [pod], containers
|
# return [pod], containers
|
||||||
|
|
||||||
def tr_identity(project_name, given_containers):
|
def tr_identity(project_name, given_containers):
|
||||||
|
pod_name = f"pod_{project_name}"
|
||||||
|
pod = dict(name=pod_name)
|
||||||
containers = []
|
containers = []
|
||||||
for cnt in given_containers:
|
for cnt in given_containers:
|
||||||
containers.append(dict(cnt))
|
containers.append(dict(cnt, pod=pod_name))
|
||||||
return [], containers
|
return [pod], containers
|
||||||
|
|
||||||
|
|
||||||
def assert_volume(compose, mount_dict):
|
def assert_volume(compose, mount_dict):
|
||||||
|
Loading…
Reference in New Issue
Block a user