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

Deterministic files creation, modification timestamps in docker images #1321

Open
ppiotrow opened this issue Mar 23, 2020 · 0 comments
Open

Comments

@ppiotrow
Copy link
Contributor

ppiotrow commented Mar 23, 2020

Expected behaviour

sbt docker:publishLocal always generates files with deterministic file creation and modification timestamps.

Actual behaviour

Now build time is used as files creation&modification timestamps in the final docker image.

Why?

Seems like a good practice to force deterministic builds (JIB faq)
It is very likely that this enables consistent layers caching between different docker build environments as it this thread by @sideeffffect

Links

JIB source code
explaining-docker-image-ids
how-to-digest-a-docker-image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants