Skip to content

Commit 541864b

Browse files
committed
chore: default max-health-check-startup-timeout to 60 secs
1 parent 46f0e42 commit 541864b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
FROM golang:bullseye AS builder
22

3+
ARG VERSION=docker
4+
35
COPY . .
46
COPY .docker/entrypoint.sh /entrypoint.sh
57

68
WORKDIR /go
79

8-
ENV VERSION=docker
10+
ENV VERSION=${VERSION}
911

1012
RUN make build
1113
RUN make build-plugins

cmd/serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ func init() {
279279

280280
ServeCommand.Flags().UintVarP(&portInactivity, "port-inactivity", "", 120, "Port inactivity timeout")
281281

282-
ServeCommand.Flags().UintVarP(&maxStartupHealthCheckTimeout, "max-health-check-startup-timeount", "", 0, "Sets the max amount of time the health check is allowed to take on startup. If the value is 0, there will be no timeout. This is useful to prevent the health check from blocking the startup of the daemon fully.")
282+
ServeCommand.Flags().UintVarP(&maxStartupHealthCheckTimeout, "max-health-check-startup-timeout", "", 60, "Sets the max amount of time the health check is allowed to take on startup. If the value is 0, there will be no timeout. This is useful to prevent the health check from blocking the startup of the daemon fully.")
283283

284284
ServeCommand.Flags().StringVarP(&initSnapshotUrl, "init-snapshot-url", "", "", "Snapshot to restore on startup")
285285

0 commit comments

Comments
 (0)