From af474761d499c9dffd20fb3fe92237d25b1af7c2 Mon Sep 17 00:00:00 2001 From: alsadi Date: Tue, 5 Mar 2019 22:43:32 +0200 Subject: [PATCH] update readme and remove sleep --- README.md | 15 +++++++++++++++ podman-compose.py | 4 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3ffe449..763b749 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,21 @@ it's still underdevelopment and does not work yet. ## Examples +### Working Example + +Using host network and localhost works as in + +``` +$ ./podman-compose.py -t hostnet -f examples/awx-working/docker-compose.yml up +$ # wait for a while, because there is not dependency then +$ podman restart awx-working_awx_task_1 +$ podman restart awx-working_awx_web_1 +``` + +### in progress work + + ``` ./podman-compose.py -t cntnet -f examples/awx/docker-compose.yml up ``` + diff --git a/podman-compose.py b/podman-compose.py index d63ad56..aedbb91 100755 --- a/podman-compose.py +++ b/podman-compose.py @@ -274,7 +274,7 @@ def up(project_name, dirname, pods, containers): args=[ "podman", "pod", "create", "--name={}".format(pod["name"]), - "--share", "cgroup,uts", + "--share", "cgroup,ipc", ] ports = pod.get("ports") or [] for i in ports: @@ -291,7 +291,7 @@ def up(project_name, dirname, pods, containers): print(p.wait()) #print("""podman run -d --pod='{pod}' --name='{name}' '{image}'""".format(**cnt)) # subprocess.Popen(args, bufsize=0, executable=None, stdin=None, stdout=None, stderr=None, preexec_fn=None, close_fds=False, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0) - time.sleep(3600) + time.sleep(1) def main(command, filename, project_name, no_ansi, transform_policy, host_env=None): filename= os.path.realpath(filename)