git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #26911 from manveru/patch-2

dockerTools.buildImage: configurable timestamp

commit35b974a8e9a3234088502e289876ccff526950de authorDaiderd Jordan <daiderd@gmail.com> dateWed 28 Jun 2017, 21:28 (9 years ago) parentad8253854419f3
1 file changed+3−2
pkgs/build-support/docker/default.nix+3−2
pkgs/build-support/docker/default.nix+3−2
@@ -380,6 +380,8 @@ rec {
380380 runAsRoot ? null,
381381 # Size of the virtual machine disk to provision when building the image.
382382 diskSize ? 1024,
383+ # Time of creation of the image.
384+ created ? "1970-01-01T00:00:01Z",
383385 }:
384386
385387 let
@@ -387,10 +389,9 @@ rec {
387389
388390 # Create a JSON blob of the configuration. Set the date to unix zero.
389391 baseJson = writeText "${baseName}-config.json" (builtins.toJSON {
390− created = "1970-01-01T00:00:01Z";
392+ inherit created config;
391393 architecture = "amd64";
392394 os = "linux";
393− config = config;
394395 });
395396
396397 layer =