From 7a20e8ef3adc8819aa8427d70a748b4d6ec17b4d Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Wed, 1 Feb 2023 08:27:49 -0300 Subject: [PATCH] add netcat to base images for healthcheck --- parachain/Dockerfile | 5 ++++- worker/Dockerfile | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/parachain/Dockerfile b/parachain/Dockerfile index f2e5dff..a5c433a 100644 --- a/parachain/Dockerfile +++ b/parachain/Dockerfile @@ -16,6 +16,9 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \ export PATH="$PATH:$HOME/.cargo/bin" && \ rustup toolchain install nightly && \ rustup target add wasm32-unknown-unknown --toolchain nightly && \ - rustup default stable + rustup default stable + +# install netcat for healthcheck +RUN apt-get update && apt-get install -yq netcat && cp /usr/bin/nc /usr/local/bin/ RUN echo "PATH=\"$PATH:/root/.cargo/bin\"" >> /etc/environment diff --git a/worker/Dockerfile b/worker/Dockerfile index 55ec6a6..f17b7ee 100644 --- a/worker/Dockerfile +++ b/worker/Dockerfile @@ -75,6 +75,9 @@ RUN apt-get update && \ rm -rf /var/lib/apt/lists/* && \ rm -rf /var/cache/apt/archives/* +# install netcat for healthcheck +RUN apt-get update && apt-get install -yq netcat && cp /usr/bin/nc /usr/local/bin/ + # set environment variables ENV DEBIAN_FRONTEND noninteractive ENV TERM xterm