Skip to content

Commit

Permalink
tilt: smaller sui image
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-gray committed Dec 11, 2024
1 parent e9b080b commit 4a13965
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sui/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 8 additions & 4 deletions sui/Dockerfile.base
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
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

# 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

Expand Down

0 comments on commit 4a13965

Please sign in to comment.