Add ping command to server to allow container healthchecks (#2030)

Fixes: https://github.com/woodpecker-ci/woodpecker/issues/1943

Note: Kubernetes ignores the container `HEALTHCHECK` by default.

---------

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
Robert Kaussow
2023-07-25 15:55:29 +02:00
committed by GitHub
parent 6b59143c44
commit 84b597478f
4 changed files with 72 additions and 0 deletions

View File

@@ -11,4 +11,5 @@ EXPOSE 8000 9000 80 443
COPY dist/server/${TARGETOS}/${TARGETARCH}/woodpecker-server /bin/
HEALTHCHECK CMD ["/bin/woodpecker-server", "ping"]
ENTRYPOINT ["/bin/woodpecker-server"]