mirror of
https://github.com/matter-labs/nixsgx.git
synced 2025-07-21 23:43:56 +02:00
refactor: replace mkSGXContainer with sgxGramineContainer
- Deprecate `mkSGXContainer` in favor of `sgxGramineContainer`. - Update references to use the new container creation function. - Streamline the codebase by simplifying `overlays/libTee/default.nix`. Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
parent
b080c32f2a
commit
1e8c8ed1c7
5 changed files with 269 additions and 269 deletions
|
@ -1,18 +1,17 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
# Copyright (c) 2024 Matter Labs
|
||||
{ lib
|
||||
, nixsgxLib
|
||||
{ pkgs
|
||||
, hello
|
||||
, isAzure ? false
|
||||
, container-name ? "nixsgx-test-sgx-dcap"
|
||||
, tag ? "latest"
|
||||
}:
|
||||
nixsgxLib.mkSGXContainer {
|
||||
pkgs.lib.tee.sgxGramineContainer {
|
||||
name = container-name;
|
||||
inherit tag isAzure;
|
||||
|
||||
packages = [ hello ];
|
||||
entrypoint = lib.meta.getExe hello;
|
||||
entrypoint = pkgs.lib.meta.getExe hello;
|
||||
|
||||
extraCmd = "echo \"Starting ${container-name}\"; gramine-sgx-sigstruct-view app.sig";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue