From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GC4BNtez5WViIAAAqHPOHw:P1 (envelope-from ) for ; Mon, 04 Mar 2024 12:43:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GC4BNtez5WViIAAAqHPOHw (envelope-from ) for ; Mon, 04 Mar 2024 12:43:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EvEzGiUX; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709552599; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ienNntoU7pqiH8E65qIIaQr5w+tOI0RAN5dc8gxdF6w=; b=OBZxcYl8/my5rPiyVe5xMbn9NaWfTizk/T9nTEf5a810tZmbZRzyB7cm8lx6h9DjiPVw/Z 5jlVI/wvn6rp3JEG0AOAsRpMVR1qXM6AjLUGTTKT7H7kLSyEitW3tKHj2elozMoeXoI/KY QU/ZH/sScEk7CelRveHdjJK23JueovXNsAYkv245pkT7tcNFumwW/uoga7PJ7RZGsq4Q8e rnYrV+1ESIDABrWOLZHuaiUD+aoXKb7Pa1ZN/trRKqC/uFg1D4JPkM/Aw/DbnqilV2GkZP CAMeaZtkB3PHgT7LM16LzYkkyYQh0D2J25WyqT3PNaQDW+Y26e62Xdu8czbzQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EvEzGiUX; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709552599; a=rsa-sha256; cv=none; b=YiqYXZjxyMxoRnmPNWuihWMXYRpj2MhpdfG5Jl0aobenYbtRL/986rKABU4/ssQ0HvPxUz PgKBH4DiMyRgu+WuSFJrHH2RTcI+SvYfzQXkuAcsccM6GARyfP4NlndkD06WFgUx7Ku97G 1uIMuR6sB9vuCLYBR4+pclPVwfSJqSCS2Iu/Pk1KAheqR1j/DWWZWe80mAZwxtNoj2GViu 2rw2DUFLXAKfqcsnTO16nqe3FOkVVlHdBhzT+8QLuUXhqxewf+G5aaocdG+MvI7W7x76j7 ZytaRHAJNAUcwMxNCBlG6EyrjDBsuscvMNbgaXcb/coQvTqfN1o4s3P6ZRPzNQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BC19E3A819 for ; Mon, 4 Mar 2024 12:43:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rh6iY-0007OT-1U; Mon, 04 Mar 2024 06:42:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rh6iT-0007O9-J8 for guix-devel@gnu.org; Mon, 04 Mar 2024 06:42:46 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rh6iR-0006Ua-An for guix-devel@gnu.org; Mon, 04 Mar 2024 06:42:44 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-33d90b322b0so791869f8f.0 for ; Mon, 04 Mar 2024 03:42:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709552561; x=1710157361; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ienNntoU7pqiH8E65qIIaQr5w+tOI0RAN5dc8gxdF6w=; b=EvEzGiUXfi8GmQQh6T/jgTj7RrmgI1RmmVVoRIt1uVxdnZu40AA3B/Naseyfnbz3Du zVCIyi4knP1jUyfTmOPlmfs9ofL0PFhn4dezc4eXL0d4gEhGNzfH0hqYYQ1Xo+pC3yrM IbpOvq7tdfOVlYsMErwPXoZcjUkYdobz1mtauzNZZHM3i4siXnQZuOTFMiYBu/av7vKL bhkkes4oYSvQLA/C/brGoSMp0PsSkbp8AaZcqFZoK/GSY/XY6GkSNxPdmwsR6It86K+n 1sAZPa1HG/gdtkPK3mnbMBxZqv1AcL2oIRpVzBLLeXKKS/lKCJQjRQluxTpCLtKFmSho +2Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709552561; x=1710157361; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ienNntoU7pqiH8E65qIIaQr5w+tOI0RAN5dc8gxdF6w=; b=agWLHRmEni4/ShbJX9jesu8wGv+WFhucPw0cJJWH55sNMjQ5yU7cOVkcokKQ28ioU1 badVode77xRxImoMQiDfAO6/U0UIQtPX70XI39N1R9eiDqR22NSj9zqFwtZnl6DgF0dq dgHoe6WzEkpICCPvH7aOjLBMnqH9wgzlSaqUQrvMpYuaVkCn9NeFegZ8irm6Ekp8mqwi dw5mwDNOB9Fi85GQ+yStSvZWNoAuQrr7YtH7LqGfzFoVXxQNSIUUbPvGmjZ6pxSEUuUB HUZuQy5zy1xHiYKM7Cv0MU6oV3WtFBI12gE6OOuow6wYEmhfpoV5DBAqzdBnGNAlJFnq 6cvg== X-Gm-Message-State: AOJu0Yzq2OTgHv4c0BBw+GJG+rW//916tGIG9M1RcHdFChSYGXu9UZQ1 ebvLDhgXneYOdi0wUniK9UT6FX/CdeVWhBJobP9vhLTrMFMv4In0WtnIGPP+ X-Google-Smtp-Source: AGHT+IEnSTcSsRvTPMnJtCH8V9BuWBCaKzrZ8XwKG9ezr0BJMRvnTnDx/nC0oZ0FY9J4E1mAxAONTQ== X-Received: by 2002:a05:600c:3594:b0:412:9a51:d5bc with SMTP id p20-20020a05600c359400b004129a51d5bcmr7024645wmq.2.1709552561096; Mon, 04 Mar 2024 03:42:41 -0800 (PST) Received: from lili (roam-nat-fw-prg-194-254-61-41.net.univ-paris-diderot.fr. [194.254.61.41]) by smtp.gmail.com with ESMTPSA id d8-20020a05600c3ac800b00412e84e59d8sm571226wms.44.2024.03.04.03.42.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 03:42:40 -0800 (PST) From: Simon Tournier To: Antoine Eiche , Ricardo Wurmus Cc: guix-devel@gnu.org Subject: Re: Building container images with nix2container In-Reply-To: <87plwjilke.fsf@tilia> References: <8734tijjpy.fsf@tilia> <87wmqszwif.fsf@elephly.net> <87plwjilke.fsf@tilia> Date: Mon, 26 Feb 2024 18:33:21 +0100 Message-ID: <87o7c36sgu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: 13 X-Spam_score: 1.3 X-Spam_bar: + X-Spam_report: (1.3 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_96_XX=3.405, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.06 X-Spam-Score: -8.06 X-Migadu-Queue-Id: BC19E3A819 X-Migadu-Scanner: mx11.migadu.com X-TUID: sqOXXIObFD8s Hi lewo, On lun., 26 f=C3=A9vr. 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 +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 =E2=80=A6) Cheers, simon