Adding an extend example (helm+oci)

This commit is contained in:
2024-03-24 09:33:05 +01:00
parent 6f0834519e
commit 78894bd3b1
5 changed files with 60 additions and 4 deletions

View File

@ -0,0 +1,20 @@
{
pkgs
, lib
, helmnix ? import ../../../helm-poc/nix/helm.nix {}
}:
helmnix.mkHelm rec {
name = "cert-manager";
version = "v1.14.4";
url = "https://charts.jetstack.io/charts/${name}-${version}.tgz";
hash = "sha256-V3X9vBiB1uUQ33bTh1OvVLhr0Uyqjtso/bt5UnBC3t4=";
values = ./../../values/cert-manager.yaml;
}
#pkgs.dockerTools.streamLayeredImage {
# name = "oci-image";
# includeStorePaths = false;
# fakeRootCommands = ''
# cp -Lr ${localOutputs.charts}/* .
# rm -fr nix
# '';

View File

@ -0,0 +1,18 @@
{
pkgs,
lib,
localOutputs,
}:
pkgs.dockerTools.streamLayeredImage {
name = "oci-image";
includeStorePaths = false;
fakeRootCommands = ''
cp -Lr ${localOutputs.manifests}/* .
rm -fr nix
'';
# config.Entrypoint = ["${lib.getExe localOutputs.binaries.simple-package}"];
# contents = [
# pkgs.hello
# ];
}