From: Simon Tournier <zimon.toutoune@gmail.com>
To: Antoine Eiche <lewo@abesis.fr>, Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: Building container images with nix2container
Date: Mon, 26 Feb 2024 18:33:21 +0100 [thread overview]
Message-ID: <87o7c36sgu.fsf@gmail.com> (raw)
In-Reply-To: <87plwjilke.fsf@tilia>
Hi lewo,
On lun., 26 févr. 2024 at 11:09, Antoine Eiche <lewo@abesis.fr> wrote:
> Does your built images contains several layers?
This had recently been introduced.
0cf75c9b2f23869201144917cea7f6ad49683d3d
AuthorDate: Tue Dec 26 03:54:12 2023 +0300
CommitDate: Mon Jan 8 21:04:44 2024 +0300
> nix2container uses an heuristic to group store paths into layers. The
> goal is to share common layers between images and to avoid full image
> rebuild when only a storepath differs.
Well, I have not followed on which strategy Guix relies. What is the
one of nix2container? The one described here:
https://grahamc.com/blog/nix-and-layered-docker-images/
> Do you write the image tarball into your store when you build an image?
>
> nix2container is able to build layers on the fly from the Nix store. The
> goal is to reduce IOs and storage. Instead of writing an image tarball
> into the store, it generates a script which stream layers from store
> paths to the destination (a Docker registry, the Docker deamon, Podman
> or a file).
To my knowledge, this is not implemented in Guix. And indeed, it could
improve the dance. Currently, it reads:
docker load < $(guix pack -f docker …)
Cheers,
simon
next prev parent reply other threads:[~2024-03-04 11:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-24 9:27 Building container images with nix2container Antoine Eiche
2024-02-25 10:07 ` Ricardo Wurmus
2024-02-26 10:09 ` Antoine Eiche
2024-02-26 10:24 ` Ricardo Wurmus
2024-02-26 17:33 ` Simon Tournier [this message]
2024-03-08 10:31 ` Simon Tournier
2024-03-17 17:32 ` Antoine Eiche
2024-03-17 17:09 ` Antoine Eiche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o7c36sgu.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=guix-devel@gnu.org \
--cc=lewo@abesis.fr \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.