-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Binary
sevctl
was absent from debian packages
Solution: Build `sevctl` using an upstream version of Rust (the version in Debian is not supported), and bundle it in the Debian packages. Add a setting in aleph-vm with the path of the bundled binary.
- Loading branch information
Showing
5 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -14,3 +14,4 @@ | |
**/data.tgz | ||
/pydantic/ | ||
**/target | ||
/packaging/sevctl/target |
This file contains 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 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 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,12 @@ | ||
# Build sevctl inside an OCI Image with an upstream version of Rust. | ||
# sevctl requires a version of Rust more recent than the one available in Debian stable. | ||
# The binary built should be static and portable across Linux systems (to be validated). | ||
|
||
FROM rust:1.78.0-bookworm | ||
WORKDIR /opt | ||
RUN git clone --depth 1 --branch v0.4.3 https://github.com/virtee/sevctl.git | ||
WORKDIR /opt/sevctl | ||
RUN cargo build --release --target x86_64-unknown-linux-gnu | ||
|
||
VOLUME /target | ||
CMD cp /opt/sevctl/target/x86_64-unknown-linux-gnu/release/sevctl /target/sevctl |
This file contains 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