Skip to content

Conversation

sanekmelnikov
Copy link
Contributor

@sanekmelnikov sanekmelnikov commented Oct 8, 2025

What

An image with contracts sources, build artifacts, and pinned forge binary used for building.
Contract hashes are checked against AllContractsHashes.json
This image can be used by zkstack for consistent forge script runs and for verification.

For now - intended for testing.

Command for local build:

docker buildx build \
  --platform linux/amd64 \
  --pull --no-cache \
  -f contracts/docker/protocol/Dockerfile \
  -t local/protocol:v0.29.0 \
  contracts

Why

  • eliminates the need to compile contracts locally (faster)
  • ensures consistent and reproducible setups for forge runs (independent from local toolchain)

Checklist

  • 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.

@sanekmelnikov sanekmelnikov marked this pull request as ready for review October 9, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants