mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
docker: add basics OpenContainers labels
This commit is contained in:
parent
e73fcd008a
commit
18dc96269d
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,13 @@
|
|||
gid ? 0,
|
||||
uname ? "root",
|
||||
gname ? "root",
|
||||
Labels ? {
|
||||
"org.opencontainers.image.title" = "Nix";
|
||||
"org.opencontainers.image.source" = "https://github.com/NixOS/nix";
|
||||
"org.opencontainers.image.vendor" = "Nix project";
|
||||
"org.opencontainers.image.version" = nix.version;
|
||||
"org.opencontainers.image.description" = "Nix container image";
|
||||
},
|
||||
# Default Packages
|
||||
nix,
|
||||
bashInteractive,
|
||||
|
@ -352,6 +359,7 @@ dockerTools.buildLayeredImageWithNixDb {
|
|||
'';
|
||||
|
||||
config = {
|
||||
inherit Labels;
|
||||
Cmd = [ (lib.getExe bashInteractive) ];
|
||||
User = "${toString uid}:${toString gid}";
|
||||
Env = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue