-
Notifications
You must be signed in to change notification settings - Fork 159
proxy: build docker images for proxy #4015
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
Open
chirag-parmar
wants to merge
7
commits into
master
Choose a base branch
from
proxy-docker-export
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0e97a5b
build docker images for proxy
chirag-parmar 4560156
multi arch and review
chirag-parmar 0d88b54
change name
chirag-parmar 9a9c5ec
Merge branch 'master' into proxy-docker-export
advaita-saha 1efc856
Merge branch 'master' into proxy-docker-export
advaita-saha 5927346
Merge branch 'master' into proxy-docker-export
chirag-parmar 9cfa5d9
Merge branch 'master' into proxy-docker-export
chirag-parmar 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 |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Nimbus | ||
| # Copyright (c) 2026 Status Research & Development GmbH | ||
| # Licensed under either of | ||
| # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or | ||
| # http://www.apache.org/licenses/LICENSE-2.0) | ||
| # * MIT license ([LICENSE-MIT](LICENSE-MIT) or | ||
| # http://opensource.org/licenses/MIT) | ||
| # at your option. This file may not be copied, modified, or distributed except | ||
| # according to those terms. | ||
|
|
||
| FROM debian:trixie-slim AS build | ||
|
|
||
| SHELL ["/bin/bash", "-c"] | ||
|
|
||
| RUN apt-get clean && apt update \ | ||
| && apt -y install curl build-essential git-lfs | ||
|
|
||
| RUN ldd --version | ||
|
|
||
| ADD . /root/nimbus-eth1 | ||
|
|
||
| RUN cd /root/nimbus-eth1 \ | ||
| && rm -rf build/ \ | ||
| && make -j$(nproc) init \ | ||
| && make -j$(nproc) DISABLE_MARCH_NATIVE=1 V=1 nimbus_verified_proxy | ||
|
|
||
| # --------------------------------- # | ||
| # Starting new image to reduce size # | ||
| # --------------------------------- # | ||
| FROM debian:trixie-slim AS deploy | ||
|
|
||
| SHELL ["/bin/bash", "-c"] | ||
| RUN apt-get clean && apt update \ | ||
| && apt -y install build-essential | ||
| RUN apt update && apt -y upgrade | ||
|
|
||
| RUN ldd --version | ||
|
|
||
| RUN rm -f /home/user/nimbus-eth1/build/nimbus_verified_proxy | ||
|
|
||
| COPY --from=build /root/nimbus-eth1/build/nimbus_verified_proxy /home/user/nimbus-eth1/build/nimbus_verified_proxy | ||
|
|
||
| ENV PATH="/home/user/nimbus-eth1/build:${PATH}" | ||
| ENTRYPOINT ["nimbus_verified_proxy"] | ||
| WORKDIR /home/user/nimbus-eth1/build | ||
|
|
||
| STOPSIGNAL SIGINT |
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,26 @@ | ||
| # Nimbus | ||
| # Copyright (c) 2026 Status Research & Development GmbH | ||
| # Licensed under either of | ||
| # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or | ||
| # http://www.apache.org/licenses/LICENSE-2.0) | ||
| # * MIT license ([LICENSE-MIT](LICENSE-MIT) or | ||
| # http://opensource.org/licenses/MIT) | ||
| # at your option. This file may not be copied, modified, or distributed except | ||
| # according to those terms. | ||
|
|
||
| FROM --platform=linux/amd64 debian:trixie-slim | ||
|
|
||
| SHELL ["/bin/bash", "-c"] | ||
|
|
||
| # Likely to match the first regular user:group created on the host. | ||
| RUN groupadd -g 1000 user && \ | ||
| useradd -u 1000 -g 1000 -c "" -m -s /bin/bash -p '*' user | ||
|
|
||
| USER user | ||
|
|
||
| STOPSIGNAL SIGINT | ||
|
|
||
| # Docker refuses to copy the source directory here, so read it as "nimbus-verified-proxy/*" | ||
| COPY "nimbus-verified-proxy" "/home/user/nimbus-verified-proxy/" | ||
| WORKDIR "/home/user/nimbus-verified-proxy/" | ||
| ENTRYPOINT ["/home/user/nimbus-verified-proxy/build/nimbus_verified_proxy"] |
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,32 @@ | ||
| # Nimbus | ||
| # Copyright (c) 2026 Status Research & Development GmbH | ||
| # Licensed under either of | ||
| # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or | ||
| # http://www.apache.org/licenses/LICENSE-2.0) | ||
| # * MIT license ([LICENSE-MIT](LICENSE-MIT) or | ||
| # http://opensource.org/licenses/MIT) | ||
| # at your option. This file may not be copied, modified, or distributed except | ||
| # according to those terms. | ||
|
|
||
| # Bring in the static QEMU binary (works when cross-building) | ||
| FROM --platform=$BUILDPLATFORM multiarch/qemu-user-static:latest AS qemu | ||
|
|
||
| FROM --platform=linux/arm64/v8 debian:trixie-slim | ||
|
|
||
| SHELL ["/bin/bash", "-c"] | ||
|
|
||
| # Only needed when cross-building, but harmless otherwise | ||
| COPY --from=qemu /usr/bin/qemu-aarch64-static /usr/bin/ | ||
|
|
||
| # Likely to match the first regular user:group created on the host. | ||
| RUN groupadd -g 1000 user && \ | ||
| useradd -u 1000 -g 1000 -c "" -m -s /bin/bash -p '*' user | ||
|
|
||
| USER user | ||
|
|
||
| STOPSIGNAL SIGINT | ||
|
|
||
| # Docker refuses to copy the source directory here, so read it as "nimbus-verified-proxy/*" | ||
| COPY "nimbus-verified-proxy" "/home/user/nimbus-verified-proxy/" | ||
| WORKDIR "/home/user/nimbus-verified-proxy/" | ||
| ENTRYPOINT ["/home/user/nimbus-verified-proxy/build/nimbus_verified_proxy"] |
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.