-
-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
37 additions
and
18 deletions.
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
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 |
---|---|---|
@@ -1,12 +1,7 @@ | ||
[build] | ||
# additional commands to run prior to building the package | ||
pre-build = [ | ||
"apt update", | ||
# libclang-dev is required when building with `aws-lc` feature | ||
# we need the external llvm repository to cross compile for linux-gnu-unknown/amd64 | ||
"DEBIAN_FRONTEND=noninteractive apt -y --no-install-recommends install cmake apt-transport-https libclang-dev clang", | ||
"echo deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main > /etc/apt/llvm.list", | ||
"curl --proto '=https' --tlsv1.2 -sSfL https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -", | ||
"apt update", | ||
"DEBIAN_FRONTEND=noninteractive apt -y --no-install-recommends install libclang-8-dev", | ||
] | ||
# Specify settings for the x86_64-unknown-linux-gnu target | ||
[target.aarch64-unknown-linux-gnu] | ||
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main" | ||
[target.x86_64-unknown-linux-gnu] | ||
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main" |
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,5 @@ | ||
FROM cgr.dev/chainguard/glibc-dynamic@sha256:0c09bcfc6a1f8755b7a20bd7550e0448adc75d75d22baddd57d9b87577d3f8b4 | ||
ARG BINARY_PATH | ||
|
||
COPY --chown=nonroot ${BINARY_PATH}/ockam / | ||
ENTRYPOINT ["/ockam"] |