Skip to content

Commit

Permalink
refactor: add preLoadStorePaths to the buildLayer of mkDevOCI
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec authored and blaggacao committed Aug 11, 2023
1 parent 49aaf59 commit ac0909b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/ops/mkDevOCI.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ in
automatically prefixed with "org.opencontainers.image".
config: Additional options to pass to nix2container.buildImage's config.
options: Additional options to pass to nix2container.buildImage.
preLoadStorePaths: A list of store paths to preload/copy into the container.
Returns:
An OCI container image (created with nix2container).
Expand All @@ -45,6 +46,7 @@ in
tag ? null,
pkgs ? [],
setup ? [],
preLoadStorePaths ? [],
perms ? [],
labels ? {},
config ? {},
Expand Down Expand Up @@ -205,6 +207,7 @@ in

layers = [
(n2c.buildLayer {
deps = preLoadStorePaths;
copyToRoot = [
(nixpkgs.buildEnv
{
Expand Down

0 comments on commit ac0909b

Please sign in to comment.