build: drive binary build script#2031
Closed
shumkov wants to merge 4 commits into
Closed
Conversation
Comment on lines
+1
to
+29
| # Use the official Rust image based on Debian Bullseye 1.76-bullseye | ||
| FROM rust@sha256:607b5e64b8d51f78ac5a37984e64f6493e9a7f90b605fa068be86ff035f48141 | ||
|
|
||
| # Install necessary packages | ||
| RUN apt-get update && apt-get install -y \ | ||
| clang \ | ||
| cmake \ | ||
| git \ | ||
| wget \ | ||
| bash \ | ||
| unzip \ | ||
| && if [[ "$TARGETARCH" == "arm64" ]] ; then apt-get install -y gcc-aarch64-linux-gnu; fi \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Add Rust target | ||
| RUN if [[ "$TARGETARCH" == "arm64" ]] ; then RUST_TARGET=aarch64-unknown-linux-gnu; else RUST_TARGET=x86_64-unknown-linux-gnu; fi; \ | ||
| rustup target add ${RUST_TARGET} | ||
|
|
||
| # Install protoc - protobuf compiler | ||
| ARG PROTOC_VERSION="25.2" | ||
| RUN if [[ "$TARGETARCH" == "arm64" ]] ; then export PROTOC_ARCH=aarch_64; else export PROTOC_ARCH=x86_64; fi; \ | ||
| curl -Ls https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-${PROTOC_ARCH}.zip \ | ||
| -o /tmp/protoc.zip && \ | ||
| unzip -qd /opt/protoc /tmp/protoc.zip && \ | ||
| rm /tmp/protoc.zip && \ | ||
| ln -s /opt/protoc/bin/protoc /usr/bin/ | ||
|
|
||
| # Set the working directory inside the container | ||
| WORKDIR /app |
Member
There was a problem hiding this comment.
this is duplicative of this file no? https://github.com/dashpay/platform/blob/392934b6d881fb94f2ca8233f131fa3e12c31afb/packages/rs-drive-abci/Dockerfile.repro
Collaborator
Author
There was a problem hiding this comment.
yeah, this is replacement
Comment on lines
+21
to
+24
| # TODO: I don't think it's a good idea | ||
| overflow-checks = false | ||
| lto = true | ||
| # TODO: I don't think it's a good idea |
Collaborator
Author
There was a problem hiding this comment.
We are recovering panics in Drive ABCI
https://doc.rust-lang.org/book/ch09-01-unrecoverable-errors-with-panic.html
Collaborator
Review GateCommit:
|
Member
|
If we end up doing this, we will start over. |
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.
Issue being fixed or feature implemented
What was done?
How Has This Been Tested?
Breaking Changes
Checklist:
For repository code-owners and collaborators only