[PATCH] Compress docker images with xz

Josh Boyer jwboyer at fedoraproject.org
Tue Dec 16 16:46:56 UTC 2014


On Tue, Dec 16, 2014 at 11:45:01AM -0500, Josh Boyer wrote:
>Imagefactory supports gzip, bzip2, and xz compression formats.  Upstream
>Docker prefers xz, so switch to using that.

This is the same patch attached to
https://fedorahosted.org/koji/ticket/300 which in turn would solve a
rel-eng request from the Fedora cloud SIG.

josh

>---
> builder/kojid | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/builder/kojid b/builder/kojid
>index 8b1ea27..d59a0bb 100755
>--- a/builder/kojid
>+++ b/builder/kojid
>@@ -3220,7 +3220,7 @@ class BaseImageTask(OzImageTask):
>         @returns:
>             a dict with some metadata about the image
>         """
>-        img_opts = {'compress': 'gzip'}
>+        img_opts = {'compress': 'xz'}
>         targ = self._do_target_image(self.base_img.base_image.identifier,
>             'docker', img_opts=img_opts)
>         return {'image': targ.target_image.data}
>-- 
>1.9.3


More information about the buildsys mailing list