-
Notifications
You must be signed in to change notification settings - Fork 1
fix(release): use cross main branch to fix mdbx-sys build #84
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
Merged
+114
−35
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4a2f2f5
fix(release): use cross main branch and simplify Cross.toml
panos-xyz 952186e
fix(docker): use full semver tag with v prefix, remove SHA and major.…
panos-xyz b1359c7
chore: remove temporary test-cross-build workflow
panos-xyz ece9bb7
chore(makefile): add cross build targets for linux x86_64 and aarch64
panos-xyz c1e21bb
fix(release): use make build-<target> in CI and add --locked to cross…
panos-xyz 6371da8
fix(release): add RUSTFLAGS and JEMALLOC env vars inline, keep CI ind…
panos-xyz b073bcd
fix(release): use make build-<target> to align CI with Makefile env vars
panos-xyz 1dd13ff
perf(docker): use cross-compiled binaries instead of QEMU emulation
panos-xyz 7867ee7
feat(release): add structured release notes template with checklists …
panos-xyz e97123a
fix(docker): add non-root user to Dockerfile.cross for runtime isolation
panos-xyz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,2 @@ | ||
| [build] | ||
| pre-build = [ | ||
| # Use HTTPS for package sources | ||
| "apt-get update && apt-get install --assume-yes --no-install-recommends ca-certificates", | ||
| "find /etc/apt/ -type f \\( -name '*.list' -o -name '*.sources' \\) -exec sed -i 's|http://|https://|g' {} +", | ||
|
|
||
| # Configure APT retries and timeouts to handle network issues | ||
| "echo 'Acquire::Retries \"3\";' > /etc/apt/apt.conf.d/80-retries", | ||
| "echo 'Acquire::http::Timeout \"60\";' >> /etc/apt/apt.conf.d/80-retries", | ||
| "echo 'Acquire::ftp::Timeout \"60\";' >> /etc/apt/apt.conf.d/80-retries", | ||
|
|
||
| # rust-bindgen dependencies: llvm-dev libclang-dev (>= 10) clang (>= 10) | ||
| # Required for reth-mdbx-sys compilation. | ||
| # See: https://github.com/cross-rs/cross/wiki/FAQ#using-clang--bindgen | ||
| "apt-get update && apt-get install --assume-yes --no-install-recommends llvm-dev libclang-dev clang", | ||
| ] | ||
|
|
||
| [build.env] | ||
| passthrough = ["JEMALLOC_SYS_WITH_LG_PAGE"] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Cross-compilation image: assumes the morph-reth binary has already been | ||
| # compiled for $TARGETPLATFORM and placed in ./dist/bin/$TARGETARCH/ | ||
| FROM --platform=$TARGETPLATFORM ubuntu:22.04 | ||
|
|
||
| LABEL org.opencontainers.image.source=https://github.com/morph-l2/morph-reth | ||
| LABEL org.opencontainers.image.licenses="MIT OR Apache-2.0" | ||
|
|
||
| # Filled by docker buildx | ||
| ARG TARGETARCH | ||
|
|
||
| RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && \ | ||
| useradd --system --create-home --home-dir /var/lib/morph-reth --shell /usr/sbin/nologin morph-reth && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| COPY ./dist/bin/$TARGETARCH/morph-reth /usr/local/bin/morph-reth | ||
|
|
||
| EXPOSE 8545 8546 8551 30303 30303/udp | ||
|
|
||
| WORKDIR /var/lib/morph-reth | ||
| USER morph-reth | ||
| ENTRYPOINT ["/usr/local/bin/morph-reth"] | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.