teepot/packages/container-vault-admin/default.nix
Harald Hoyer de06acbef9
fix: don't tag the nix produced container with latest
leave it to the github workflow on push to main

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
2024-06-12 13:21:44 +02:00

28 lines
573 B
Nix

# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2024 Matter Labs
{ dockerTools
, nixsgx
, teepot
, buildEnv
, curl
}:
dockerTools.buildLayeredImage {
name = "vault-unseal";
config.Entrypoint = [ "${teepot.teepot.vault_unseal}/bin/vault-unseal" ];
contents = buildEnv {
name = "image-root";
paths = with dockerTools; with nixsgx;[
azure-dcap-client
curl.out
sgx-dcap.quote_verify
usrBinEnv
binSh
caCertificates
fakeNss
teepot.teepot.vault_unseal
];
pathsToLink = [ "/bin" "/lib" "/etc" ];
};
}