Skip to content

Commit

Permalink
move healthcheck to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
onokatio committed Jun 22, 2023
1 parent ff949a2 commit 89febb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.katzenmint
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ COPY --from=builder /go/Meson/katzenmint/katzenmint /go/bin/katzenmint

VOLUME /chain

HEALTHCHECK --interval=10s --timeout=10s --retries=10 \
CMD curl -f http://localhost:26657/block_results?height=1 || exit 1

ENTRYPOINT /go/bin/katzenmint run --config /chain/katzenmint.toml
5 changes: 0 additions & 5 deletions testnet/local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ x-auth: &auth
build:
context: ../../
dockerfile: Dockerfile.katzenmint
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:26657/block_results?height=1"]
interval: 10s
timeout: 10s
retries: 10

services:
provider1:
Expand Down

0 comments on commit 89febb6

Please sign in to comment.