From 941f4a230eaf7f6f90e0aff297510fb2f45fd58f Mon Sep 17 00:00:00 2001 From: DaMandal0rian Date: Thu, 12 Sep 2024 15:41:39 +0300 Subject: [PATCH] change healthcheck command in dockerfiles related to https://github.com/paritytech/polkadot-sdk/pull/4802 --- Dockerfile-node | 35 ++++++++++++++++------------------- Dockerfile-node.aarch64 | 5 +---- 2 files changed, 17 insertions(+), 23 deletions(-) diff --git a/Dockerfile-node b/Dockerfile-node index 46ffd787ee4..e19bb5a9296 100644 --- a/Dockerfile-node +++ b/Dockerfile-node @@ -13,16 +13,16 @@ WORKDIR /code RUN \ apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ - ca-certificates \ - protobuf-compiler \ - curl \ - git \ - llvm \ - clang \ - automake \ - libtool \ - pkg-config \ - make && \ + ca-certificates \ + protobuf-compiler \ + curl \ + git \ + llvm \ + clang \ + automake \ + libtool \ + pkg-config \ + make && \ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $RUSTC_VERSION RUN /root/.cargo/bin/rustup target add wasm32-unknown-unknown @@ -43,11 +43,11 @@ ARG SUBSTRATE_CLI_GIT_COMMIT_HASH RUN \ /root/.cargo/bin/cargo -Zgitoxide -Zgit build \ - --locked \ - -Z build-std \ - --profile $PROFILE \ - --bin subspace-node \ - --target $(uname -p)-unknown-linux-gnu && \ + --locked \ + -Z build-std \ + --profile $PROFILE \ + --bin subspace-node \ + --target $(uname -p)-unknown-linux-gnu && \ mv target/*/*/subspace-node subspace-node && \ rm -rf target @@ -59,10 +59,7 @@ RUN \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -HEALTHCHECK CMD curl \ - -H "Content-Type: application/json" \ - -d '{ "id": 1, "jsonrpc": "2.0", "method": "system_health", "params": [] }' \ - -f "http://localhost:9944" +HEALTHCHECK CMD curl -v localhost:9944/health COPY --from=0 /code/subspace-node /subspace-node diff --git a/Dockerfile-node.aarch64 b/Dockerfile-node.aarch64 index 0b0b6fecf02..c14ee0a5f42 100644 --- a/Dockerfile-node.aarch64 +++ b/Dockerfile-node.aarch64 @@ -69,10 +69,7 @@ RUN \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -HEALTHCHECK CMD curl \ - -H "Content-Type: application/json" \ - -d '{ "id": 1, "jsonrpc": "2.0", "method": "system_health", "params": [] }' \ - -f "http://localhost:9944" +HEALTHCHECK CMD curl -v localhost:9944/health COPY --from=0 /code/subspace-node /subspace-node