dockerTools.buildImage: configurable timestamp
This way not all images have to be from 47 years ago, making it much easier to find the one you're looking for.
This commit is contained in:
parent
2c30e5e754
commit
704e04b108
|
@ -380,6 +380,8 @@ rec {
|
||||||
runAsRoot ? null,
|
runAsRoot ? null,
|
||||||
# Size of the virtual machine disk to provision when building the image.
|
# Size of the virtual machine disk to provision when building the image.
|
||||||
diskSize ? 1024,
|
diskSize ? 1024,
|
||||||
|
# Time of creation of the image.
|
||||||
|
created ? "1970-01-01T00:00:01Z",
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -387,7 +389,7 @@ rec {
|
||||||
|
|
||||||
# Create a JSON blob of the configuration. Set the date to unix zero.
|
# Create a JSON blob of the configuration. Set the date to unix zero.
|
||||||
baseJson = writeText "${baseName}-config.json" (builtins.toJSON {
|
baseJson = writeText "${baseName}-config.json" (builtins.toJSON {
|
||||||
created = "1970-01-01T00:00:01Z";
|
created = created;
|
||||||
architecture = "amd64";
|
architecture = "amd64";
|
||||||
os = "linux";
|
os = "linux";
|
||||||
config = config;
|
config = config;
|
||||||
|
|
Loading…
Reference in a new issue