feat: add GRAMINE_DIRECT

if the container is passed `GRAMINE_DIRECT=1` then `gramine-direct`
is executed. This helps debugging on non-sgx machines.

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-06-14 14:25:46 +02:00
parent 070abadeb7
commit ec8f336547
Signed by: harald
GPG key ID: F519A1143B3FBE32
3 changed files with 18 additions and 1 deletions

View file

@ -63,3 +63,9 @@ jobs:
- name: nix build
run: nix run github:nixos/nixpkgs/nixos-23.11#nixci
- name: integration check
run: |
nix build --accept-flake-config -L .#nixsgx-test-sgx-azure
docker load -i result
docker run -i --env GRAMINE_DIRECT=1 --privileged --init --rm nixsgx-test-sgx-azure:latest | grep -q -F 'Hello, world!'