Skip to content

Commit

Permalink
Support start_interval in healthcheck block
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Syl <robin@robinsyl.dev>
  • Loading branch information
recursiveribbons committed Mar 9, 2024
1 parent 6372c0a commit ae6e67f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ae6e67f

Please sign in to comment.