Skip to content

Commit

Permalink
chore: Remove start-period from Docker health check (#1979)
Browse files Browse the repository at this point in the history
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 <charith@cerbos.dev>

Signed-off-by: Charith Ellawala <charith@cerbos.dev>
  • Loading branch information
charithe committed Feb 7, 2024
1 parent 4798453 commit 03f95ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.cerbos
Expand Up @@ -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

0 comments on commit 03f95ec

Please sign in to comment.