mirror of
https://github.com/matter-labs/teepot.git
synced 2025-07-21 23:23:57 +02:00

It refactors the way the SGX containers are built. This removes all `Dockerfile` and gramine manifest files. It also enables a single recipe for azure and non-azure variants. Additionally the `teepot-crate.nix` is now the inherited recipe to build the rust `teepot` crate. Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
32 lines
695 B
Nix
32 lines
695 B
Nix
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (c) 2024 Matter Labs
|
|
{ dockerTools
|
|
, buildEnv
|
|
, teepot
|
|
, openssl
|
|
, curl
|
|
, nixsgx
|
|
}:
|
|
dockerTools.buildLayeredImage {
|
|
name = "verify-attestation-sgx";
|
|
tag = "latest";
|
|
|
|
config.Cmd = [ "${teepot.teepot.verify_attestation}/bin/verify-attestation" ];
|
|
config.Env = [ "LD_LIBRARY_PATH=/lib" ];
|
|
contents = buildEnv {
|
|
name = "image-root";
|
|
|
|
paths = with dockerTools; with nixsgx;[
|
|
openssl.out
|
|
curl.out
|
|
sgx-dcap.quote_verify
|
|
sgx-dcap.default_qpl
|
|
teepot.teepot.verify_attestation
|
|
usrBinEnv
|
|
binSh
|
|
caCertificates
|
|
fakeNss
|
|
];
|
|
pathsToLink = [ "/bin" "/lib" "/etc" "/share" ];
|
|
};
|
|
}
|