From 03f95ec6cb3afa02d7535fb9764ee4b0ac4e69f8 Mon Sep 17 00:00:00 2001 From: Charith Ellawala Date: Wed, 7 Feb 2024 11:28:19 +0000 Subject: [PATCH] chore: Remove start-period from Docker health check (#1979) Thanks to @haines for pointing out that `start-period` being less than `interval` doesn't make sense. Since Cerbos is pretty quick to start up, there's no point in setting `start-period` at all. Signed-off-by: Charith Ellawala Signed-off-by: Charith Ellawala --- Dockerfile.cerbos | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.cerbos b/Dockerfile.cerbos index 9704b0759..f1b13382a 100644 --- a/Dockerfile.cerbos +++ b/Dockerfile.cerbos @@ -7,7 +7,7 @@ ENV CERBOS_CONFIG="__default__" VOLUME ["/policies", "/tmp", "/.cache"] ENTRYPOINT ["/cerbos"] CMD ["server"] -HEALTHCHECK --interval=10s --timeout=2s --retries=2 --start-period=5s CMD ["/cerbos", "healthcheck"] +HEALTHCHECK --interval=10s --timeout=2s --retries=2 CMD ["/cerbos", "healthcheck"] COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY cerbos /cerbos