teepot/packages/container-vault-start-config/default.nix
Harald Hoyer d0c5950c0e
feat: use nixsgx nix function to create containers
It refactors the way the SGX containers are built.
This removes all `Dockerfile` and gramine manifest files.
It also enables a single recipe for azure and non-azure variants.

Additionally the `teepot-crate.nix` is now the inherited recipe to
build the rust `teepot` crate.

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
2024-06-10 16:32:02 +02:00

23 lines
412 B
Nix

# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Matter Labs
{ lib
, stdenv
}:
stdenv.mkDerivation {
name = "container-vault-start-config";
src = with lib.fileset; toSource {
root = ./.;
fileset = unions [
./cacert.pem
./cakey.pem
./config.hcl
];
};
phases = "installPhase";
postInstall = ''
mkdir -p $out/opt/vault
cp -r $src/* $out/opt/vault
'';
}