Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting the Created timestamp #146

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

daniel-sampliner
Copy link

Implements #89.

Like nixpkgs.dockerTools.buildImage, let nix2container.buildImage take an optional created argument that will be set on the resulting image. For backwards compatibility, it defaults to "0001-01-01T00:00:00Z".

I did not implement support for passing "now", as I don't need it.

(cherry picked from commit ffafa5d)

Implements nlewo#89.

Like `nixpkgs.dockerTools.buildImage`, let `nix2container.buildImage` take an
optional `created` argument that will be set on the resulting image. For
backwards compatibility, it defaults to `"0001-01-01T00:00:00Z"`.

I did not implement support for passing `"now"`, as I don't need it.

(cherry picked from commit ffafa5d)
Copy link
Owner

@nlewo nlewo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@nlewo
Copy link
Owner

nlewo commented Aug 29, 2024

Tests passed locally (the CI is failing since several months and i don't have time to investigate).

@nlewo nlewo merged commit 505c19a into nlewo:master Aug 29, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants