nixsgx/packages/docker-gramine-azure/default.nix
Harald Hoyer 1054e3dbe4
feat: initial commit
Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
2024-02-07 11:25:05 +01:00

28 lines
467 B
Nix

{ 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
'';
};
}