Skip to content

build: make Docker builds reproducible - #1164

Open
hari2353 wants to merge 1 commit into
genezhang:mainfrom
hari2353:build/reproducible-docker-build
Open

hari2353 wants to merge 1 commit into
genezhang:mainfrom
hari2353:build/reproducible-docker-build

Conversation

@hari2353

Copy link
Copy Markdown

Summary\n\nMake the production Docker build reproducible and repair the stale Debian runtime dependency.\n\n## Changes\n\n- Pin the cargo-chef builder to the CI-aligned Rust 1.92.0 image by digest.\n- Add --locked to cargo chef cook and both release build commands.\n- Move the runtime image from Debian Bullseye to Bookworm.\n- Remove the obsolete libssl1.1 runtime dependency.\n\n## Why\n\nThe previous latest-rust-1-bullseye builder was mutable and had drifted to a newer compiler than CI. The Bullseye runtime build currently fails because the security repository no longer serves the selected OpenSSL package, returning a 404 during �pt-get install.\n\n## Verification\n\nLocally verified with Docker Desktop Linux engine:\n\n ext\ndocker build --check -f Dockerfile . PASS\ndocker build -t clickgraph-reproducible:test -f Dockerfile . PASS\ndocker run --rm --entrypoint /bin/sh clickgraph-reproducible:test -c \\\n 'id -u; id -g; /usr/local/bin/clickgraph --help | head -n 5' PASS\n\n\nThe image built all three shipped binaries, and the runtime smoke test reported UID/GID 1000 and successful ClickGraph help output.

This branch has not been deployed

No deployments
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.

1 participant