From ae6e67f486eae2bb3d46fb3d15002b0238663d15 Mon Sep 17 00:00:00 2001 From: Robin Syl Date: Sat, 23 Sep 2023 12:34:54 +0200 Subject: [PATCH] Support start_interval in healthcheck block Signed-off-by: Robin Syl --- podman_compose.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index 005010a..219fc44 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -1041,13 +1041,15 @@ async def container_to_args(compose, cnt, detached=True): else: raise ValueError("'healthcheck.test' either a string or a list") - # interval, timeout and start_period are specified as durations. + # interval, timeout, start_period, and start_interval are specified as durations. if "interval" in healthcheck: podman_args.extend(["--health-interval", healthcheck["interval"]]) if "timeout" in healthcheck: podman_args.extend(["--health-timeout", healthcheck["timeout"]]) if "start_period" in healthcheck: podman_args.extend(["--health-start-period", healthcheck["start_period"]]) + if "start_interval" in healthcheck: + podman_args.extend(["--health-startup-interval", healthcheck["start_interval"]]) # convert other parameters to string if "retries" in healthcheck: