From a5030cc7e06fd63823524d28be2b6e6b34437ec9 Mon Sep 17 00:00:00 2001 From: muXxer Date: Thu, 14 Nov 2024 15:48:43 +0100 Subject: [PATCH] fix(docker): small cleanups and fixes --- docker/iota-bridge-indexer/Dockerfile | 4 ++++ docker/iota-node-deterministic/Dockerfile | 2 +- docker/iota-rosetta-devnet/Dockerfile | 1 - docker/iota-source-validation-service/Dockerfile | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docker/iota-bridge-indexer/Dockerfile b/docker/iota-bridge-indexer/Dockerfile index 2aa62cfdfd3..59323b7c03e 100644 --- a/docker/iota-bridge-indexer/Dockerfile +++ b/docker/iota-bridge-indexer/Dockerfile @@ -69,6 +69,10 @@ WORKDIR "$WORKDIR" # Install runtime dependencies and tools RUN apt update && apt install -y libpq5 ca-certificates curl +# Install jemalloc as the default allocator +RUN apt install -y libjemalloc-dev +ENV LD_PRELOAD /usr/lib/x86_64-linux-gnu/libjemalloc.so + COPY --from=builder /iota/bridge-indexer /usr/local/bin ARG BUILD_DATE diff --git a/docker/iota-node-deterministic/Dockerfile b/docker/iota-node-deterministic/Dockerfile index 3f9aaf26992..4fe864fe092 100644 --- a/docker/iota-node-deterministic/Dockerfile +++ b/docker/iota-node-deterministic/Dockerfile @@ -37,7 +37,7 @@ COPY --from=ca-certificates . / COPY . /iota -WORKDIR "$WORKDIR/iota" +WORKDIR "/iota" # TODO: Remove when iota-sim is public https://github.com/iotaledger/iota/issues/2149 RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts diff --git a/docker/iota-rosetta-devnet/Dockerfile b/docker/iota-rosetta-devnet/Dockerfile index 9083cb97cec..6c428a6f8d7 100644 --- a/docker/iota-rosetta-devnet/Dockerfile +++ b/docker/iota-rosetta-devnet/Dockerfile @@ -41,7 +41,6 @@ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true RUN git clone https://github.com/iotaledger/iota . RUN git checkout devnet - # TODO: Remove "--mount=type=ssh" when iota-sim is public https://github.com/iotaledger/iota/issues/2149 RUN --mount=type=ssh cargo build --profile ${PROFILE} \ --bin iota \ diff --git a/docker/iota-source-validation-service/Dockerfile b/docker/iota-source-validation-service/Dockerfile index ab061d350a9..c1f06ae910e 100644 --- a/docker/iota-source-validation-service/Dockerfile +++ b/docker/iota-source-validation-service/Dockerfile @@ -70,6 +70,7 @@ WORKDIR "$WORKDIR" RUN apt update && apt install -y libpq5 ca-certificates curl COPY --from=builder /iota/iota-source-validation-service /usr/local/bin +COPY --from=builder /iota/crates/iota-source-validation-service/config.toml /var/iota/ ARG BUILD_DATE ARG GIT_REVISION