Skip to content

Commit

Permalink
fix(docker): use pre-compiled foundry binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelstanley committed Feb 8, 2024
1 parent 8d61dcc commit f702c69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,10 @@ apt-get install -y --no-install-recommends \
xxd
EOF

# Install Foundry.
RUN curl -L https://foundry.paradigm.xyz | bash
ENV PATH="~/.foundry/bin:${PATH}"
ARG FOUNDRY_COMMIT_VERSION
RUN <<EOF
set -e
bash -c foundryup -C ${FOUNDRY_COMMIT_VERSION}
ln -s ~/.foundry/bin/anvil /usr/bin/anvil
EOF
# Install Foundry from downloaded pre-compiled binaries
ARG FOUNDRY_NIGHTLY_VERSION
RUN curl -sSL https://github.com/foundry-rs/foundry/releases/download/nightly-${FOUNDRY_NIGHTLY_VERSION}/foundry_nightly_linux_$(dpkg --print-architecture).tar.gz | \
tar -zx -C /usr/local/bin

# STAGE: devnet-builder
#
Expand Down
2 changes: 1 addition & 1 deletion build/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ target "common" {
BASE_IMAGE = "debian:bookworm-20240110-slim"
RUST_VERSION = "1.75.0"
GO_VERSION = "1.21.1"
FOUNDRY_COMMIT_VERSION = "24abca6c9133618e0c355842d2be2dd4f36da46d"
FOUNDRY_NIGHTLY_VERSION = "293fad73670b7b59ca901c7f2105bf7a29165a90"
SERVER_MANAGER_VERSION = "0.8.3"
MACHINE_EMULATOR_VERSION = "0.15.3"
ROOTFS_VERSION = "0.18.0"
Expand Down

0 comments on commit f702c69

Please sign in to comment.