Repository navigation
Conversation
The bedrock-init image installs a Go toolchain (~1 GB) and Foundry (~200 MB), but nothing in the image uses either: - scripts/init-bedrock.sh needs curl, tar, sha256sum, openssl and the downloader/extractor helpers in scripts/utils.sh - scripts/utils.sh needs aria2c (aria2), unzstd (zstd), lz4 and coreutils - grep across scripts/, docker/ and the repo history finds no cast, forge, anvil or go invocation - they were never referenced by any container-side script They look cargo-culted from the upstream simple-optimism-node template. Removing them shrinks every 'docker compose up --build' and drops a 'curl | bash' supply-chain step from the build. The apt line keeps the packages the scripts do use; git/wget/rsync/build-essential/python3 are also unused but small enough to leave for a follow-up. README updated: it claimed the container installs Foundry 'for its own image build', which is no longer true. progress.sh still needs cast on the host.
Follow-up to the Go/Foundry removal in this branch: the apt line still installed git, wget, rsync, build-essential, python3 and python3-pip, none of which any script calls. init-bedrock.sh needs curl, tar/sha256sum (base image), openssl; utils.sh needs aria2c, unzstd and lz4. Install only those, with --no-install-recommends and an apt list cleanup, and add ca-certificates explicitly since it is no longer pulled in implicitly - the snapshot download is HTTPS.
feafel
force-pushed
the
chore/drop-unused-go-foundry
branch
from
November 12, 2026 21:49
38c438f to
2f60963
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Removes the Go toolchain and Foundry from
docker/dockerfiles/Dockerfile.bedrock-init:and updates the README sentence that claimed the container installs Foundry.
Why
Nothing in the image uses either toolchain:
scripts/init-bedrock.shcurl,tar,sha256sum,openssl,mkdir,dirnamescripts/utils.sharia2c(aria2),unzstd(zstd),lz4, coreutilsgrepacrossscripts/,docker/and the repo history finds nocast,forge,anvilorgoinvocation — they were never referenced by any container-side script. They look cargo-culted from the upstreamsimple-optimism-nodetemplate this repo was forked from.Effect: every
docker compose up --buildbuilds a smaller image (~1.2 GB less to pull/extract on first boot, which matters because the first boot is already dominated by a 250-400 GB snapshot download), and the build loses acurl | bashstep that fetched a third-party installer.progress.shstill needscast, but it runs on the host — that is unchanged and the README now says so directly.Verification
git grep -nE '\b(cast|forge|anvil)\b'over tracked files → onlyprogress.sh, which is host-side)docker-compose.ymluntouched; the image still installs everythinginit-bedrock.sh/utils.shcallNot verified: an actual
docker build(no Docker in this environment) — the change only deletes twoRUNblocks that nothing depends on.