feat: initial commit

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-02-05 16:19:15 +01:00
parent 6fe41c9723
commit 1054e3dbe4
Signed by: harald
GPG key ID: F519A1143B3FBE32
51 changed files with 3521 additions and 1 deletions

View file

@ -0,0 +1,28 @@
{ lib
, buildEnv
, busybox
, python3
, dockerTools
, nixsgx
}:
dockerTools.buildLayeredImage {
name = "gramine-azure";
tag = "latest";
contents = buildEnv {
name = "image-root";
paths = [
busybox
nixsgx.azure-dcap-client
nixsgx.sgx-psw
nixsgx.sgx-dcap.quote_verify
nixsgx.gramine
];
pathsToLink = [ "/bin" "/lib" "/etc" ];
postBuild = ''
mkdir -p $out/var
ln -s /run $out/var/run
'';
};
}