dockerTools.buildImage: test that created=now makes an unstable date

This commit is contained in:
Graham Christensen
2018-09-20 13:06:14 -04:00
parent 3222fe1756
commit aedc651903
2 changed files with 16 additions and 0 deletions
+9
View File
@@ -141,4 +141,13 @@ rec {
runAsRoot = ''echo "(runAsRoot)" > runAsRoot'';
extraCommands = ''echo "(extraCommand)" > extraCommands'';
};
# 9. Ensure that setting created to now results in a date which
# isn't the epoch + 1
unstableDate = pkgs.dockerTools.buildImage {
name = "unstable-date";
tag = "latest";
contents = [ pkgs.coreutils ];
created = "now";
};
}