nixsgx/packages/nixsgx-test-sgx-dcap/default.nix
Harald Hoyer 83f9cc24ee
feat: rename manifest and sigs to app by default via appName parameter
This will ease the creation of scripts processing containers further.

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
2024-06-26 12:26:40 +02:00

28 lines
555 B
Nix

# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Matter Labs
{ lib
, pkgs
, inputs
, nixsgx
, hello
, isAzure ? false
, container-name ? "nixsgx-test-sgx-dcap"
, tag ? "latest"
}:
pkgs.callPackage lib.nixsgx.mkSGXContainer {
name = container-name;
inherit tag isAzure;
packages = [ hello ];
entrypoint = lib.meta.getExe hello;
extraCmd = "echo \"Starting ${container-name}\"; gramine-sgx-sigstruct-view app.sig";
manifest = {
sgx = {
edmm_enable = false;
enclave_size = "32M";
max_threads = 2;
};
};
}