From 8fbee7e0b86712be9f08569676d89270e32faa8a Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Fri, 29 Jul 2016 16:00:49 +0100 Subject: [PATCH] Use a container for doing gzip compression The CI uses Alpine with busybox and that version is not good at compression. ALso use `.DELETE_ON_ERROR` so empty files are not created on failure. Signed-off-by: Justin Cormack --- alpine/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/alpine/Makefile b/alpine/Makefile index 80ac34a12..f1385d464 100644 --- a/alpine/Makefile +++ b/alpine/Makefile @@ -11,7 +11,7 @@ initrd.img: Dockerfile mkinitrd.sh init $(ETCFILES) docker-compose run --rm -T moby /bin/mkinitrd.sh initrd.img.gz: initrd.img - cat initrd.img | gzip -9 > initrd.img.gz + cat initrd.img | docker run -i justincormack/gzip -9 > initrd.img.gz mobylinux-efi.iso: initrd.img.gz Dockerfile.efi docker-compose build efi @@ -68,3 +68,5 @@ clean: rm -f mobylinux-bios.iso mobylinux-efi.iso mobylinux.efi $(MAKE) -C packages clean $(MAKE) -C kernel clean + +.DELETE_ON_ERROR: