-
Notifications
You must be signed in to change notification settings - Fork 645
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
Support reproducible docker image builds with Buildkit #1842
Comments
I think SOURCE_DATE_EPOCH should be set to |
BTW @modax how can you "specify SOURCE_DATE_EPOCH with current plugin version"? I mean other than setting an environment variable on the host - can it be done within maven? |
Hi,
As far as documentation states, it can be both environment variable and build argument. I have not tested environment variable (which would be hackish imho) since I specify build argument |
I mean |
Sure thing, I don't mind. |
Description
Latest Buildkit versions support reproducible builds (or rather make them easier to achieve). Currently, the plugin can only do reproducible builds from the docker build cache. More info:
While it is possible to specify
SOURCE_DATE_EPOCH
with current plugin version (0.45.1
) via various methods, I'm not aware of a method to specifyrewrite-timestamp=true
parameter for--output
. Actually , BuildXService.java does not use--output
at all at the moment.Info
0.45.1
mvn -v
) :3.8.8
27.4.0
I would like to do reproducible docker builds regardless of docker build cache existence.
The text was updated successfully, but these errors were encountered: