Conversation
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
This is due to wanting to avoid the docker-specific additions to the index manifest right? It should be avoidable with BuildKit's That said upstream has also discussed intent to switch to both OCI settings as default in future, which would simplify this a bit further for you. Related |
|
I don't think this is a good solution for adding default options. I think bake provides a much more compelling way to wrap more complex build outputs with options and is preferred over an environment variable. I'm going to close this for the moment. It might make sense to have an environment variable or other way to configure default compression options as I can imagine that being something you might want to change locally to potentially speed up build times by lowering the compression. I'm not really open to the idea of having a default output be controlled by an environment variable though. |
zstdcompression is quite popular compared to the defaultgzip. But to usezstd, we need to pass several parameters. For example:docker buildx build --output type=image,oci-mediatypes=true,compression=zstd,push=true,force-compression=true --provenance=false .We can use Bash aliases or scripts to make this easier, but it would be simpler if
buildxallowed setting defaults for--outputflag.A possible implementation has been added to this PR.