mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Merge pull request #13366 from drupol/push-smvorxlvxusx
docker: add basics OpenContainers labels
This commit is contained in:
commit
cdb417854b
1 changed files with 9 additions and 1 deletions
10
docker.nix
10
docker.nix
|
@ -19,6 +19,14 @@
|
||||||
gid ? 0,
|
gid ? 0,
|
||||||
uname ? "root",
|
uname ? "root",
|
||||||
gname ? "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";
|
||||||
|
},
|
||||||
|
Cmd ? [ (lib.getExe bashInteractive) ],
|
||||||
# Default Packages
|
# Default Packages
|
||||||
nix,
|
nix,
|
||||||
bashInteractive,
|
bashInteractive,
|
||||||
|
@ -352,7 +360,7 @@ dockerTools.buildLayeredImageWithNixDb {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
Cmd = [ (lib.getExe bashInteractive) ];
|
inherit Cmd Labels;
|
||||||
User = "${toString uid}:${toString gid}";
|
User = "${toString uid}:${toString gid}";
|
||||||
Env = [
|
Env = [
|
||||||
"USER=${uname}"
|
"USER=${uname}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue