-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Implements Proposal: Address Base Image Reproducibility #245
Conversation
LayerBuilder layerBuilder = | ||
new LayerBuilder( | ||
sourceFiles, extractionPath, buildConfiguration.getEnableReproducibleBuilds()); | ||
LayerBuilder layerBuilder = new LayerBuilder(sourceFiles, extractionPath, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason to keep this last parameter/reproducibility logic in LayerBuilder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept this here since the LayerBuilder is low-level logic, so the trade-off of removing the explicit "true" here would be a comment added to LayerBuilder saying that it only builds reproducibly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think given that we're taking an "always reproducible" approach with jib now, it's implied that LayerBuilder will make reproducible layers, so I don't think we'd need to explicitly comment on that. Comment aside, I just don't think there's much use to keeping the internal enableReproducibleBuilds
logic around if it isn't going to be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another option could be to rename LayerBuilder
to ReproducibleLayerBuilder
, if you want to be explicit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReproducibleLayerBuilder
sounds like a good idea
Should we move the proposal to "archives" or something as part of this PR? |
Yeah "archives" sounds like a good idea. |
https://github.com/GoogleContainerTools/jib/blob/master/proposals/reproducible_base_image.md
Fixes #241
Fixes #217