Skip to content

Commit

Permalink
add healthcheck to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdean-digicatapult committed Jan 31, 2024
1 parent 2982a0d commit 8094d7a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ FROM ubuntu:jammy AS runtime

RUN <<EOF
apt-get update
apt-get install -y libgcc-11-dev
apt-get install -y libgcc-11-dev curl
rm -rf /var/lib/apt/lists/*
EOF

Expand All @@ -53,4 +53,6 @@ WORKDIR /dscp-node

ENTRYPOINT [ "/dscp-node/dscp-node" ]

EXPOSE 30333 9933 9944
HEALTHCHECK CMD curl -f http://localhost:9944/health || exit 1

EXPOSE 30333 9615 9944
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = '2021'
license = 'Apache-2.0'
repository = 'https://github.com/digicatapult/dscp-node/'
name = 'dscp-node'
version = '10.0.4'
version = '10.0.5'

[[bin]]
name = 'dscp-node'
Expand Down
2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dscp-node-runtime"
version = "10.0.4"
version = "10.0.5"
authors = ["Digital Catapult <https://www.digicatapult.org.uk>"]
edition = "2021"
license = "Apache-2.0"
Expand Down

0 comments on commit 8094d7a

Please sign in to comment.