-
Notifications
You must be signed in to change notification settings - Fork 509
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
Add buildx build --opt
(EXPERIMENTAL)
#2260
Conversation
Seems fine if we keep this flag under experimental. Don't think we should move it out in the future? This could also be useful for bake (can be in follow-up). If you could add a basic integration test in https://github.com/docker/buildx/blob/master/tests/build.go that checks a frontend attribute being set through opt. Maybe similar to Line 325 in 97e8fa7
--annotation ?
|
Added tests and bake. |
Failure seems unrelated?
|
Yes this is linked to #2253 and will be fixed when changes are made on docs repo (cc @dvdksn) |
I'm not sure if we want this. Buildx uses opinionated UX and strictly defined flags/types. Allowing to set raw buildkit values directly adds confusion and makes it easier to make mistakes - pass wrong values and get to undefined configuration combinations. Definitely not as |
This will remain experimental forever, so this will not confuse non-expert users. If this is still not acceptable as an arg, can we implement this as an env var that takes a JSON of |
This allows opt-in to new features of BuildKit that are not officially exposed to buildx yet. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Hi there, I agree with Tonis on this one. I'm concerned about the user experience of enabling this kind of backdoor through to Buildkit. It's confusing for users and leads to a support overhead further down the line. I know this would be experimental, but people would start using it and then get annoyed when we removed it or stopped supporting it. We already get backlash from users regarding legacy builder functionality, which has been dropped from Buildkit. |
This allows opt-in to new features of BuildKit that are not officially exposed to buildx yet.