zopflicate deps in parallel

This commit is contained in:
ed
2019-06-26 22:11:37 +00:00
parent 97a90f5f10
commit f110d1254d
4 changed files with 20 additions and 9 deletions

View File

@@ -40,13 +40,10 @@ RUN cd ogvjs-$ver_ogvjs \
ogv-decoder-audio-vorbis-wasm.js \
ogv-decoder-audio-vorbis-wasm.wasm \
dynamicaudio.swf \
/z/dist \
/z/dist
# compress
&& find /z/dist | \
while IFS= read -r x; do \
echo "compressing $x"; \
pigz -11 -I 50 $x; \
done
# -I 1000 = 503587
# -I 15 = 503650 (default)
# -I 3 = 503994
COPY zopfli.makefile /z/dist/Makefile
RUN cd /z/dist \
&& make -j$(nproc) \
&& rm Makefile

View File

@@ -16,6 +16,11 @@ all:
chown -R `stat $(self) -c %u:%g` $(vend)
purge:
-docker kill `docker ps -q`
-docker rm `docker ps -qa`
-docker rmi `docker images -qa`
sh:
@printf "\n\033[1;31mopening a shell in the most recently created docker image\033[0m\n"
docker run --rm -it `docker images -aq | head -n 1` /bin/bash

View File

@@ -0,0 +1,6 @@
all: $(addsuffix .gz, $(wildcard *.*))
%.gz: %
pigz -11 -J 34 -I 573 $<
# pigz -11 -J 34 -I 100 -F < $< > $@.first