dockerTools: set mtime to epoch by default

This commit is contained in:
Tom Bereknyei 2024-09-25 00:25:47 -04:00
parent 847b4732e4
commit d0b3364822
2 changed files with 3 additions and 3 deletions

View File

@ -516,7 +516,7 @@ This allows the function to produce reproducible images.
`created` (String; _optional_) `created` (String; _optional_)
: Specifies the time of creation of the generated image. : Specifies the time of creation of the generated image.
This date will be used for the image metadata, and as the default value for `mtime`. This date will be used for the image metadata.
This should be either a date and time formatted according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or `"now"`, in which case the current date will be used. This should be either a date and time formatted according to [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) or `"now"`, in which case the current date will be used.
:::{.caution} :::{.caution}
@ -535,7 +535,7 @@ This allows the function to produce reproducible images.
Using `"now"` also means that the generated image will not be reproducible anymore (because the date will always change whenever it's built). Using `"now"` also means that the generated image will not be reproducible anymore (because the date will always change whenever it's built).
::: :::
_Default value:_ the same value as `created`. _Default value:_ `"1970-01-01T00:00:01Z"`.
`uid` (Number; _optional_) []{#dockerTools-buildLayeredImage-arg-uid} `uid` (Number; _optional_) []{#dockerTools-buildLayeredImage-arg-uid}
`gid` (Number; _optional_) []{#dockerTools-buildLayeredImage-arg-gid} `gid` (Number; _optional_) []{#dockerTools-buildLayeredImage-arg-gid}

View File

@ -907,7 +907,7 @@ rec {
, config ? { } , config ? { }
, architecture ? defaultArchitecture , architecture ? defaultArchitecture
, created ? "1970-01-01T00:00:01Z" , created ? "1970-01-01T00:00:01Z"
, mtime ? created , mtime ? "1970-01-01T00:00:01Z"
, uid ? 0 , uid ? 0
, gid ? 0 , gid ? 0
, uname ? "root" , uname ? "root"