Skip to content

BM-2468: Speed up Docker builds#1656

Draft
capossele wants to merge 5 commits intomainfrom
angelo/improve-docker-builds
Draft

BM-2468: Speed up Docker builds#1656
capossele wants to merge 5 commits intomainfrom
angelo/improve-docker-builds

Conversation

@capossele
Copy link
Contributor

All service Dockerfiles (slasher, distributor, order-stream, order-generator, broker, market-indexer, market-indexer-backfill, rewards-indexer) now have:

  • sccache with S3 backend -- shares compiled artifacts across builds via the risc0-ci-cache S3 bucket, eliminating redundant compilation across pipeline runs
  • --package flag on cargo chef cook -- scopes dependency compilation to only the crates each service actually needs, instead of cooking the entire workspace

Infra stacks updated to pass CI_CACHE_SECRET as a Docker build secret: slasher, distributor, and order-generator. (Order-stream and indexer were already wired up.)

TODO:

  • Set CI_CACHE_SECRET in Pulumi config for all stacks that build Docker images. The value should be the absolute path to an AWS credentials file with read/write access to the risc0-ci-cache S3 bucket. Without this, sccache falls back to local-only caching which provides no cross-build benefit in CI.

@github-actions github-actions bot changed the title Speed up Docker builds BM-2468: Speed up Docker builds Feb 17, 2026
@linear
Copy link

linear bot commented Feb 17, 2026

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