Skip to content

Commit 64ec99c

Browse files
Support start_interval in healthcheck block
Signed-off-by: Robin Syl <robin@robinsyl.dev>
1 parent 44885b7 commit 64ec99c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

podman_compose.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,13 +1045,15 @@ async def container_to_args(compose, cnt, detached=True):
10451045
else:
10461046
raise ValueError("'healthcheck.test' either a string or a list")
10471047

1048-
# interval, timeout and start_period are specified as durations.
1048+
# interval, timeout, start_period, and start_interval are specified as durations.
10491049
if "interval" in healthcheck:
10501050
podman_args.extend(["--health-interval", healthcheck["interval"]])
10511051
if "timeout" in healthcheck:
10521052
podman_args.extend(["--health-timeout", healthcheck["timeout"]])
10531053
if "start_period" in healthcheck:
10541054
podman_args.extend(["--health-start-period", healthcheck["start_period"]])
1055+
if "start_interval" in healthcheck:
1056+
podman_args.extend(["--health-startup-interval", healthcheck["start_interval"]])
10551057

10561058
# convert other parameters to string
10571059
if "retries" in healthcheck:

0 commit comments

Comments
 (0)