mirror of
https://github.com/matter-labs/nixsgx.git
synced 2025-07-22 15:54:47 +02:00
feat: initial commit
Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
parent
6fe41c9723
commit
1054e3dbe4
51 changed files with 3521 additions and 1 deletions
27
packages/docker-gramine-dcap/default.nix
Normal file
27
packages/docker-gramine-dcap/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ lib
|
||||
, buildEnv
|
||||
, dockerTools
|
||||
, nixsgx
|
||||
, busybox
|
||||
, ...
|
||||
}:
|
||||
dockerTools.buildLayeredImage {
|
||||
name = "gramine-dcap";
|
||||
tag = "latest";
|
||||
|
||||
contents = buildEnv {
|
||||
name = "image-root";
|
||||
paths = [
|
||||
busybox
|
||||
nixsgx.sgx-psw
|
||||
nixsgx.gramine
|
||||
nixsgx.sgx-dcap.default_qpl
|
||||
nixsgx.restart-aesmd
|
||||
];
|
||||
pathsToLink = [ "/bin" "/lib" "/etc" ];
|
||||
postBuild = ''
|
||||
mkdir -p $out/var
|
||||
ln -s /run $out/var/run
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue