update readme and remove sleep

This commit is contained in:
alsadi 2019-03-05 22:43:32 +02:00
parent 9ca0f65c6a
commit af474761d4
2 changed files with 17 additions and 2 deletions

View File

@ -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
```

View File

@ -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)