Re: Building container images with nix2container

2024-03-17 Thread Antoine Eiche
Simon Tournier writes: >> 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/ > > To answer to my question, the way to build the container image is > different, he

Re: Building container images with nix2container

2024-03-17 Thread Antoine Eiche
Simon Tournier writes: >> 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 Thanks. >> nix2container

Re: Building container images with nix2container

2024-03-11 Thread Simon Tournier
Hi Antoine, Reading this blog post: https://lewo.abesis.fr/posts/nix-build-container-image/ and from my understanding, “guix pack” is currently something similar to ’dockerTools.buildImage’ [1] On lun., 26 févr. 2024 at 18:33, Simon Tournier wrote: > Well, I have not followed on which st

Re: Building container images with nix2container

2024-03-04 Thread Simon Tournier
Hi lewo, On lun., 26 févr. 2024 at 11:09, Antoine Eiche 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 +0

Re: Building container images with nix2container

2024-02-26 Thread Ricardo Wurmus
Antoine Eiche writes: > Ricardo Wurmus writes: > >> We have "guix pack" as part of Guix. It builds Docker or squashfs >> images as well as various other formats. What does nix2container offer >> beyond what we have? > > I acutally don't know how you currently build Docker images. But if > ni

Re: Building container images with nix2container

2024-02-26 Thread Antoine Eiche
Ricardo Wurmus writes: > We have "guix pack" as part of Guix. It builds Docker or squashfs > images as well as various other formats. What does nix2container offer > beyond what we have? I acutally don't know how you currently build Docker images. But if nix2container brings something, i think

Re: Building container images with nix2container

2024-02-25 Thread Ricardo Wurmus
Antoine Eiche writes: > In case you would like to try nix2container with Guix, in theory, you > would need to add the support of another input reference graph format > [6] and a write simple Guix derivations [7] calling the nix2container > binary. We have "guix pack" as part of Guix. It build

Building container images with nix2container

2024-02-24 Thread Antoine Eiche
Hello Guix, Two years ago, i released nix2container [1], a Go library and binary to build container images from Nix expressions. However, this Go code is not tightly coupled with Nix and has been designed to potentially work with Guix [2]! nix2container offers the following main features: - It us