Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hashworks
archlinux-docker
Commits
cbaf1783
Verified
Commit
cbaf1783
authored
Jul 30, 2020
by
hashworks
Browse files
Add the ability to adjust the thread count of xz, drop -e
`xz --extreme` would only save us about 1MB but take ~50% longer.
parent
026d2788
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
cbaf1783
...
@@ -4,6 +4,8 @@ DOCKER_IMAGE:=base
...
@@ -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
...
@@ -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)
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment