mirror of
https://gitlab.archlinux.org/archlinux/archlinux-docker.git
synced 2025-08-09 23:57:14 +02:00
Add the ability to adjust the thread count of xz, drop -e
`xz --extreme` would only save us about 1MB but take ~50% longer.
This commit is contained in:
parent
026d2788df
commit
cbaf17832e
5
Makefile
5
Makefile
@ -4,6 +4,8 @@ DOCKER_IMAGE:=base
|
|||||||
BUILDDIR=build
|
BUILDDIR=build
|
||||||
PWD=$(shell pwd)
|
PWD=$(shell pwd)
|
||||||
|
|
||||||
|
XZ_THREADS ?= 0
|
||||||
|
|
||||||
hooks:
|
hooks:
|
||||||
mkdir -p alpm-hooks/usr/share/libalpm/hooks
|
mkdir -p alpm-hooks/usr/share/libalpm/hooks
|
||||||
find /usr/share/libalpm/hooks -exec ln -sf /dev/null $(PWD)/alpm-hooks{} \;
|
find /usr/share/libalpm/hooks -exec ln -sf /dev/null $(PWD)/alpm-hooks{} \;
|
||||||
@ -30,8 +32,7 @@ rootfs: hooks
|
|||||||
archlinux.tar: rootfs
|
archlinux.tar: rootfs
|
||||||
|
|
||||||
compress-rootfs: archlinux.tar
|
compress-rootfs: archlinux.tar
|
||||||
xz -f archlinux.tar
|
xz -9 -T"$(XZ_THREADS)" -f archlinux.tar
|
||||||
xz -9e -T0 -f archlinux.tar
|
|
||||||
|
|
||||||
docker-image: compress-rootfs
|
docker-image: compress-rootfs
|
||||||
docker build -t $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE) .
|
docker build -t $(DOCKER_ORGANIZATION)/$(DOCKER_IMAGE) .
|
||||||
|
Loading…
Reference in New Issue
Block a user