From 8ec2549c3e7ed4edf62380cc6daf7d9d725a2465 Mon Sep 17 00:00:00 2001 From: Santiago Torres Date: Tue, 25 Jun 2019 19:21:44 -0400 Subject: [PATCH] Dockerfile,Makefile: use a compressed tarball When building the image for publishing in the infrastructure, we need a rootfs that's <100MB, due to github filesize restrictions (this, plus the fact that there's no git-lfs support for building in the docker library toolchain). Compress the rootfs image so that it can be hosted on github. --- Dockerfile | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cde2238..0afff82 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM scratch -ADD archlinux.tar / +ADD archlinux.tar.xz / ENV LANG=en_US.UTF-8 CMD ["/usr/bin/bash"] diff --git a/Makefile b/Makefile index 9a94322..4d37d02 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ rootfs: arch-chroot $(TMPDIR) locale-gen arch-chroot $(TMPDIR) pacman-key --init arch-chroot $(TMPDIR) pacman-key --populate archlinux - tar --numeric-owner --xattrs --acls --exclude-from=exclude -C $(TMPDIR) -c . -f archlinux.tar + tar --numeric-owner --xattrs --acls --exclude-from=exclude -C $(TMPDIR) -c . -xf archlinux.tar.xz rm -rf $(TMPDIR) docker-image: rootfs