mirror of
https://github.com/containers/podman-compose.git
synced 2025-02-16 18:31:34 +01:00
Add --health-on-failure
Signed-off-by: Strahil Nikolov <stnikolov@liveperson.com>
This commit is contained in:
parent
d905a7c638
commit
980417d77e
@ -1218,6 +1218,10 @@ async def container_to_args(compose, cnt, detached=True):
|
||||
if "start_period" in healthcheck:
|
||||
podman_args.extend(["--healthcheck-start-period", healthcheck["start_period"]])
|
||||
|
||||
# check if any action must be taken on healtcheck failure
|
||||
if "on_failure" in healthcheck:
|
||||
podman_args.extend(["--health-on-failure", healthcheck["on_failure"]])
|
||||
|
||||
# convert other parameters to string
|
||||
if "retries" in healthcheck:
|
||||
podman_args.extend(["--healthcheck-retries", str(healthcheck["retries"])])
|
||||
|
Loading…
Reference in New Issue
Block a user