From d6502ee44554d19164c37f7ab53d8e8517d00aea Mon Sep 17 00:00:00 2001 From: kathleen french Date: Thu, 15 Jun 2023 15:16:40 -0400 Subject: [PATCH] enable estargz compression in image builds --- pkg/buildkit/buildkit.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/buildkit/buildkit.go b/pkg/buildkit/buildkit.go index 8ef349ce..3ee1ad98 100644 --- a/pkg/buildkit/buildkit.go +++ b/pkg/buildkit/buildkit.go @@ -243,8 +243,11 @@ func (c *Client) Build(ctx context.Context, opts BuildOptions) error { solveOpt.Exports = append(solveOpt.Exports, bkclient.ExportEntry{ Type: bkclient.ExporterImage, Attrs: map[string]string{ - "name": name, - "push": "true", + "name": name, + "push": "true", + "compression": "estargz", + "force-compression": "true", + "oci-mediatypes": "true", }, }) }