Use forked foundry

This commit is contained in:
Prathamesh Musale 2024-05-06 17:17:59 +05:30
parent 71cb9cd459
commit 01dbde3239
3 changed files with 15 additions and 8 deletions

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Build a local version of the foundry-rs/foundry image
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
docker build -t cerc/foundry:local -f ${CERC_REPO_BASE_DIR}/foundry/Dockerfile-debian ${build_command_args} ${CERC_REPO_BASE_DIR}/foundry

View File

@ -1,16 +1,17 @@
# TODO: Make work for arm64/Apple Silicon
FROM ghcr.io/foundry-rs/foundry:nightly-267e14fab654d9ce955dce64c0eb09f01c8538ee
# FROM ghcr.io/foundry-rs/foundry:nightly-267e14fab654d9ce955dce64c0eb09f01c8538ee
FROM cerc/foundry:local
RUN apk update
# Install node (use edge repo to get latest version)
RUN apk add --update --no-cache curl wget bash git busybox jq openssl \
&& apk add nodejs --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main --allow-untrusted \
&& apk add npm \
# Install node (local foundry is a debian based image)
RUN apt-get update \
&& apt-get install -y curl wget \
&& curl --silent --location https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get update \
&& apt-get install -y nodejs git busybox jq \
&& node -v
# Add corepack for yarn and pnpm
RUN npm install -g corepack && corepack enable \
RUN corepack enable \
&& yarn --version
WORKDIR /app

View File

@ -3,10 +3,12 @@ name: fixturenet-optimism
description: "Optimism Fixturenet"
repos:
# L2 (optimism)
- github.com/cerc-io/foundry@pm-merge-upstream-changes
- github.com/ethereum-optimism/optimism@v1.7.4
- github.com/ethereum-optimism/op-geth@v1.101311.0
containers:
# L2 (optimism)
- cerc/foundry
- cerc/optimism-contracts
- cerc/optimism-op-node
- cerc/optimism-l2geth