xdev-software / mockserver-neolight

A lightweight rewrite of the MockServer project with focus on simplicity, maintainability and Testcontainers
Apache License 2.0
6 stars 0 forks source link

Consider using ``zstd`` compression for Docker #94

Closed AB-xdev closed 1 month ago

AB-xdev commented 1 month ago

zstd greatly reduces time required for extracting the Docker image and it's also a bit smaller as the default gzip.

AB-xdev commented 1 month ago

Definetly using force-compression=true:

$ docker image prune -af
Total reclaimed space: 0B

$ time docker image pull xdevsoftware/mockserver:1.0.5
1.0.5: Pulling from xdevsoftware/mockserver
43c4264eed91: Pulling fs layer
...
ae79b5063a38: Pull complete
Digest: sha256:0a83dad90936b75beccc2126bc6ba5dbfd67cf6e954bce3f490c2103ac5810a7
Status: Downloaded newer image for xdevsoftware/mockserver:1.0.5
docker.io/xdevsoftware/mockserver:1.0.5

real    0m10.007s
user    0m0.075s
sys     0m0.121s

$ docker image prune -af
Deleted Images:
untagged: xdevsoftware/mockserver:1.0.5
...

Total reclaimed space: 199.3MB

$ time docker image pull xdevsoftware/mockserver:experimental
experimental: Pulling from xdevsoftware/mockserver
...
edba292b00c0: Pull complete
Digest: sha256:e87cd028aa31602ad3a39160e5e6f278f8f0ee737fd5f7e12662663c03c6dfce
Status: Downloaded newer image for xdevsoftware/mockserver:experimental
docker.io/xdevsoftware/mockserver:experimental

real    0m4.943s
user    0m0.030s
sys     0m0.106s