[PATCH] Compress docker images with xz

Josh Boyer jwboyer at fedoraproject.org
Fri Jan 16 12:50:34 UTC 2015


On Tue, Dec 16, 2014 at 11:46 AM, Josh Boyer <jwboyer at fedoraproject.org> wrote:
> 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.

Uh... ping.  It's been a month... can we please get this change in so
we can produce images with xz compression?

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