Uh oh!
There was an error while loading. Please reload this page.
Add buildx build --opt (EXPERIMENTAL) - #2260
Conversation
Uh oh!
There was an error while loading. Please reload this page.
crazy-max
commented
Feb 20, 2024
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? |
AkihiroSuda
commented
Feb 20, 2024
Added tests and bake. |
AkihiroSuda
commented
Feb 20, 2024
Failure seems unrelated? |
crazy-max
commented
Feb 20, 2024
Yes this is linked to #2253 and will be fixed when changes are made on docs repo (cc @dvdksn) |
tonistiigi
commented
Feb 21, 2024
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 |
AkihiroSuda
commented
Feb 22, 2024
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>
colinhemmings
commented
Mar 15, 2024
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.