numerous-refrigerator-93306
08/23/2025, 9:26 PMgitlab.wolfspyre.io:5009/wpl_containers/openhands/runtime_0.54.0 latest c396060e56da 14 minutes ago 7.63GB
gitlab.wolfspyre.io:5009/wpl_containers/openhands/openhands_0.54.0 latest 4a27c11b5a14 11 hours ago 2.09GB
to suss out why my openhands container's larger than upstream:
docker.all-hands.dev/all-hands-ai/runtime 0.54-nikolaik 6cf5096189d6 4 days ago 9.23GB
docker.all-hands.dev/all-hands-ai/openhands 0.54 41e4de30642b 4 days ago 1.78GB
but I'm mildly pleased at shaving a gig from the runtimenumerous-refrigerator-93306
08/23/2025, 9:30 PMCelebrating... even the most pedestrian of accomplishments....
polite-architect-52194
08/24/2025, 3:32 AMnumerous-refrigerator-93306
08/24/2025, 6:39 PMnumerous-refrigerator-93306
08/24/2025, 6:54 PMnumerous-refrigerator-93306
08/24/2025, 6:58 PMnumerous-refrigerator-93306
08/24/2025, 7:03 PMpigz for DECOMPRESSION of the layer(s) which leverages multicore to expedite the decompression ...
IT DOES NOT USE pigz FOR COMPRESSION however (as this makes the hash non-idempotent thus drastically reducing registry cachability) and we all know how much of a hard time docker has with irs registry ...
If you switch the compression algo to zstd you'll get:
⢠better compression than gzip
⢠the use of multicore for both compression and decompression
⢠you can switch the compression-level attribute from 0-22
⦠cue spinal tap 'to 11' references š
I am unaware of any mainstream registries that do not support zstd, but I'm not sure if its ubiquitous.
it might be worth trying to see how it plays with the cloudy infra...
What I'm experimenting with now:
docker buildx build --output type=image,name=gitlab.wolfspyre.io:5009/wpl_containers/openhands/openhands,compression=zstd,compression-level=10,force-compression=true,push=true \
--progress=plain \
-t gitlab.wolfspyre.io:5009/wpl_containers/openhands/openhands:0.54.0 \
-t gitlab.wolfspyre.io:5009/wpl_containers/openhands/openhands:250822 \
-t gitlab.wolfspyre.io:5009/wpl_containers/openhands/openhands:latest \
--build-arg=BASE_REGISTRY --build-arg=FILE_STORE --build-arg=FILE_STORE_PATH --build-arg=OPENHANDS_BUILD_VERSION --build-arg=APP_GID --build-arg=OPENHANDS_USER_ID --build-arg=POETRY_CACHE_DIR --build-arg=PYTHONPATH --build-arg=RUN_AS_OPENHANDS --build-arg=SANDBOX_LOCAL_RUNTIME_URL --build-arg=SANDBOX_USER_ID --build-arg=SANDBOX_WORKSPACE \
--platform linux/amd64 --provenance=false \
--cache-to=type=local,compression=zstd,compression-level=4,dest=/data/containers/,mode=max \
--cache-from=type=local,compression=zstd,compression-level=4,src=/data/containers/ \
-f /data/OpenHands/containers/app/Dockerfile \
/data/OpenHands/numerous-refrigerator-93306
08/24/2025, 7:13 PMnumerous-refrigerator-93306
08/24/2025, 7:15 PM