From 4a139655a35a158a5de79ceef683db712e410755 Mon Sep 17 00:00:00 2001 From: Evan Gray Date: Tue, 10 Dec 2024 22:37:55 -0500 Subject: [PATCH] tilt: smaller sui image --- sui/Dockerfile | 2 +- sui/Dockerfile.base | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/sui/Dockerfile b/sui/Dockerfile index 5931e6d6f0..b584fa320e 100644 --- a/sui/Dockerfile +++ b/sui/Dockerfile @@ -1,6 +1,6 @@ FROM cli-gen AS cli-export FROM const-gen AS const-export -FROM ghcr.io/wormhole-foundation/sui:1.19.1-mainnet@sha256:ad490b9c8c237b6b44d84feacfa45df3d0adeef55fcbec9586c0d9951e3dce95 AS sui +FROM ghcr.io/wormhole-foundation/sui:1.19.1-mainnet@sha256:97e2e62d43262883b7a5bed5c9a9dd83d766a00a9476473eb275948fb53d376e AS sui # initial run # COPY sui/devnet/genesis_config genesis_config diff --git a/sui/Dockerfile.base b/sui/Dockerfile.base index f42b2e9cba..38553988b4 100644 --- a/sui/Dockerfile.base +++ b/sui/Dockerfile.base @@ -1,6 +1,4 @@ -FROM rust:1.79.0@sha256:9b2689d6f99ff381f178fa4361db745c8c355faecde73aa5b18b0efa84f03e62 AS sui-node - -WORKDIR /tmp +FROM rust:1.79.0@sha256:9b2689d6f99ff381f178fa4361db745c8c355faecde73aa5b18b0efa84f03e62 AS sui-build # https://github.com/MystenLabs/sui/blob/041c5f2bae2fe52079e44b70514333532d69f4e6/docs/content/guides/developer/getting-started/sui-install.mdx#all-linux-prerequisites RUN apt-get update && apt-get install -y curl git-all cmake gcc libssl-dev pkg-config libclang-dev libpq-dev build-essential @@ -8,7 +6,13 @@ RUN apt-get update && apt-get install -y curl git-all cmake gcc libssl-dev pkg-c # https://github.com/MystenLabs/sui/releases/tag/mainnet-v1.19.1 RUN cargo install --locked --git https://github.com/MystenLabs/sui.git --rev 041c5f2bae2fe52079e44b70514333532d69f4e6 sui -RUN apt-get install -y ca-certificates gnupg +FROM rust:1.79.0@sha256:9b2689d6f99ff381f178fa4361db745c8c355faecde73aa5b18b0efa84f03e62 AS sui-node + +WORKDIR /tmp + +COPY --from=sui-build /usr/local/cargo/bin/sui /bin/sui + +RUN apt-get install -y ca-certificates curl gnupg RUN mkdir -p /etc/apt/keyrings RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg