feat: add docker build custom options#5838
Conversation
|
🍕 Here are the new binary sizes!
|
f024f1b to
0f2ebb1
Compare
|
Hello, @mRoca! Thanks so much for your contribution! You're absolutely right that your proposed changes would make our manifests more nimble for Docker options; unfortunately, any manifest changes need to be backwards-compatible so existing workloads don't break. We can't consolidate our existing build options into a more general We could theoretically add the Thanks again! |
|
Hi @huanjani , I don't get your point :-/ I've indeed added the |
|
What changes would be needed to this PR to get it merged? |
This PR allows providing any command line options to
docker buildby accepting them from an array of string instead of trying to define them all one by one.For now, only
--target&--cache-fromare supported since #1555, but we cannot anticipate every single new options (as those used by buildx, or secret files, for instance).Example:
Using an array of strings is not really readable when declaring options prefixed with a
--. The alternative would be passing the options as a single or multilines string, but this would be a lot less flexible. What do you think about it ?Fixes #2090, fixes #3466
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.