Commit 31e7fb9
authored
Publish the service images as zstd rather than gzip (#369)
A pull was already a compressed transfer, so this is a better algorithm for
the same job rather than compression where there was none. Measured on
`agent-computer`, which is where the bytes are: 962 MB becomes 886 MB, and zstd
inflates several times faster, which is worth more on 2 GB of Chromium than the
8% is.
`force-compression=true` is the part that matters. Without it only our own thin
layers change and the saving rounds to nothing, because almost every byte came
from Playwright's base image. With it those layers are recompressed, which also
means these images stop sharing layers with a gzip pull of the same base.
Only the five component images. Reading a zstd layer needs a client that
supports it, which Podman and current containerd do, and the installer ships
Podman. `ghcr.io/copilotkit/openbot` is pulled by deployments running whatever
they have, so it stays gzip.
Verified against ghcr.io before merging rather than at the next release: both
architectures pushed by digest with this exact exporter string, merged into one
OCI index, layers reported as
`application/vnd.oci.image.layer.v1.tar+zstd` including the base layer, and
`docker pull --platform` succeeded for both.1 parent ff00ada commit 31e7fb9
2 files changed
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
209 | 220 | | |
210 | 221 | | |
211 | 222 | | |
212 | 223 | | |
213 | 224 | | |
214 | 225 | | |
215 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
216 | 230 | | |
217 | 231 | | |
218 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
11 | 24 | | |
12 | 25 | | |
13 | 26 | | |
| |||
0 commit comments