-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: Add building and publishing of *.deb packages #18615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| # Use the Rust 1.88 image based on Debian Bookworm | ||
| FROM rust:1.88-bookworm AS builder | ||
| ARG RUST_VERSION=1 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will this not make it less reproducible? before we used a specific version (1.88), this one shifts over time as new stables are released
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I updated CI pipeline to pass the same RUST_VERSION as defined in the root Cargo.toml. So this could only affect reproducibility if the Dockerfile is used outside of the CI pipeline run (e.g., building locally). This change additionally removes the burden of constantly updating the Rust version in the Dockefile to match the project's root. |
||
|
|
||
| # Install specific version of libclang-dev | ||
| RUN apt-get update && apt-get install -y libclang-dev=1:14.0-55.7~deb12u1 | ||
| FROM rust:$RUST_VERSION-bookworm AS builder | ||
|
|
||
| RUN apt-get update && apt-get install -y \ | ||
| git \ | ||
| libclang-dev=1:14.0-55.7~deb12u1 | ||
|
|
||
| # Copy the project to the container | ||
| COPY ./ /app | ||
| WORKDIR /app | ||
|
|
||
| # Build the project with the reproducible settings | ||
| RUN make build-reproducible | ||
|
|
||
| RUN mv /app/target/x86_64-unknown-linux-gnu/release/reth /reth | ||
| RUN make build-reth-reproducible | ||
| RUN mv /app/target/x86_64-unknown-linux-gnu/reproducible/reth /reth | ||
|
|
||
| # Create a minimal final image with just the binary | ||
| FROM gcr.io/distroless/cc-debian12:nonroot-6755e21ccd99ddead6edc8106ba03888cbeed41a | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| [Unit] | ||
bakhtin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Description=Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol | ||
| Wants=network-online.target | ||
| After=network.target network-online.target | ||
|
|
||
| [Service] | ||
| Type=exec | ||
| DynamicUser=yes | ||
| StateDirectory=reth | ||
| ExecStart=/usr/bin/reth node --datadir %S/reth --log.file.max-files 0 | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target | ||
Uh oh!
There was an error while loading. Please reload this page.