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:
Harald Hoyer 2024-08-08 14:11:34 +02:00
parent b080c32f2a
commit 1e8c8ed1c7
Signed by: harald
GPG key ID: F519A1143B3FBE32
5 changed files with 269 additions and 269 deletions

View file

@ -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";