[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "guix pack -f docker" does too much work
From: |
Andy Wingo |
Subject: |
Re: "guix pack -f docker" does too much work |
Date: |
Mon, 03 Jun 2024 09:09:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
On Sat 01 Jun 2024 15:58, Ludovic Courtès <ludo@gnu.org> writes:
>> I think it would be great if "guix pack -f docker" could avoid building
>> all these identical layers again and again. Perhaps it would be
>> possible to have a single derivation for each layer? This way we
>> wouldn't have to recreate the same layer archives every time.
>
> That sounds nice in terms of saving CPU time. It’s less nice in terms
> of disk usage: a single ‘guix pack -f docker’ run would populate the
> store with roughly twice the size of the closure.
If the concern is CPU time, I would make sure you have switched to zstd
or some other faster codec, via `guix pack -f docker -C zstd`.
You probably already knew but if you haven't tried, it's quite
surprising :)
Andy