mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-07 16:44:10 +01:00
update readme and remove sleep
This commit is contained in:
parent
9ca0f65c6a
commit
af474761d4
15
README.md
15
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
|
||||
```
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user