forked from extern/podman-compose
#115: handle string entrypoint
This commit is contained in:
parent
f2aeaba0d6
commit
c9486c9f3b
@ -763,9 +763,8 @@ def container_to_args(compose, cnt, detached=True):
|
|||||||
entrypoint = cnt.get('entrypoint', None)
|
entrypoint = cnt.get('entrypoint', None)
|
||||||
if entrypoint is not None:
|
if entrypoint is not None:
|
||||||
if is_str(entrypoint):
|
if is_str(entrypoint):
|
||||||
podman_args.extend(['--entrypoint', entrypoint])
|
entrypoint = shlex.split(entrypoint)
|
||||||
else:
|
podman_args.extend(['--entrypoint', json.dumps(entrypoint)])
|
||||||
podman_args.extend(['--entrypoint', json.dumps(entrypoint)])
|
|
||||||
|
|
||||||
# WIP: healthchecks are still work in progress
|
# WIP: healthchecks are still work in progress
|
||||||
healthcheck = cnt.get('healthcheck', None) or {}
|
healthcheck = cnt.get('healthcheck', None) or {}
|
||||||
|
Loading…
Reference in New Issue
Block a user