Skip to content

Commit

Permalink
chore(docker): Use foundry-zksync (#2662)
Browse files Browse the repository at this point in the history
## What ❔

<!-- What are the changes this PR brings about? -->
<!-- Example: This PR adds a PR template to the repo. -->
<!-- (For bigger PRs adding more context is appreciated) -->

## Why ❔

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [ ] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.

---------

Signed-off-by: Danil <[email protected]>
  • Loading branch information
Deniallugo authored Aug 20, 2024
1 parent edfcc7d commit 8e8877e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docker/zk-environment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ RUN wget -c -O - https://sh.rustup.rs | bash -s -- -y && \
RUN cargo install --version=0.8.0 sqlx-cli
RUN cargo install cargo-nextest

# Installing foundry-zksync from git is failing, we will build it from sources
# Install foundry
RUN git clone https://github.com/matter-labs/foundry-zksync
RUN cd foundry-zksync && cargo build --release --bins
RUN mv ./foundry-zksync/target/release/forge /usr/local/bin/
RUN mv ./foundry-zksync/target/release/cast /usr/local/bin/

# Copy compiler (both solc and zksolc) binaries
# Obtain `solc` 0.8.20.
COPY --from=solidity-builder /solidity/build/solc/solc /usr/bin/
Expand All @@ -129,9 +136,6 @@ RUN wget -c https://sourceware.org/pub/valgrind/valgrind-3.20.0.tar.bz2 && \
cd valgrind-3.20.0 && ./configure && make && make install && \
cd ../ && rm -rf valgrind-3.20.0.tar.bz2 && rm -rf valgrind-3.20.0

# Install foundry
RUN cargo install --git https://github.com/foundry-rs/foundry \
--profile release --locked forge cast

# Setup the environment
ENV ZKSYNC_HOME=/usr/src/zksync
Expand Down

0 comments on commit 8e8877e

Please sign in to comment.