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 YBUBJSok92Xp3QAAqHPOHw:P1 (envelope-from ) for ; Sun, 17 Mar 2024 18:11:06 +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 YBUBJSok92Xp3QAAqHPOHw (envelope-from ) for ; Sun, 17 Mar 2024 18:11:06 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=abesis.fr header.s=mail header.b=2zNk3rGS; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710695434; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Kr5suvWGjJcYAt+Ll6lfTPprrOCzNXlpaLpXhRK1fVk=; b=i7VIjCNxKm+Txj4FVIIsYW0WswhpiCchtOqBCIZVM/P0OBVfO/6rodIWeh84XIPdvA9RPJ zoEhS6/e2EBS7FYaHwAVY8uPayVv94DssOZ97afzOcSkTV98SonRhQisKqsKk3tNidN15q 7aqz2CFoEpVWp8wiM3sGAI6+RcSJa+dxGlzRDDKtB1EYIeixqZYvJcLZvR1X5PdV4ZKQTw vCY0H+K5vVES7O2tiYQzxHP/cVXWATkvJ+fTXVN3a6oGVuq0aYEF1/0JsrY0pmGZXodM7q 5ka4hbPNXQKmRrc82Dzx6bsKbLsFx2gFXfK1rhRhcvDogIjWs94PZf+B8cii3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710695434; a=rsa-sha256; cv=none; b=VdeieinOHOONReHHhyzx/uXIbgsz6n124v4wqCZo9TiK3C71/82IUF+c51JXNIsYXmJYpC 77ip57k7Ta4rfFddIBLtE3cQeoRLu4dL0+RwLEfGr5bRDEzrf76XlW852I0e6n5GlTm6W1 H6K0EmAUQNKV9B4cifqTUs+sRPBgvB+G+OFRGu6cv4STf75Irj+1YXHho7+4FDwvv9Jb3M QLMpW63devOL+cPMbQZJ/uv5KMpkUJl6lLgZu84e7mreeCLUxOo/xsmBdihNRsbfy9ACEq VGtiZwOT3qFMOicJhlioqX2kI0NByHQEW6BQvDtWPCCynp2NFm94vp4f8HVjXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=abesis.fr header.s=mail header.b=2zNk3rGS; 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=none 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 8ADC46E010 for ; Sun, 17 Mar 2024 18:10:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlu1K-0008Vx-7S; Sun, 17 Mar 2024 13:10:02 -0400 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 1rlu1I-0008NV-5A for guix-devel@gnu.org; Sun, 17 Mar 2024 13:10:00 -0400 Received: from kordia.abesis.fr ([37.187.96.121]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlu1F-00015a-SG for guix-devel@gnu.org; Sun, 17 Mar 2024 13:09:59 -0400 From: Antoine Eiche DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abesis.fr; s=mail; t=1710695390; bh=Kr5suvWGjJcYAt+Ll6lfTPprrOCzNXlpaLpXhRK1fVk=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=2zNk3rGSS9TPuRxRzm6QSamWNUdDWgn0ahPRXEAknk3juoaQLwqpzNOjQHxEWmm3n T0UTnDyZH+6CusdM7CLTP6TQDyxXKWq08GqWiIdnYo8JKv4tC0LFjrjPUcZuplgxOC cB1yqWWGXoUbm5K7hoQilfBmRv4n1U087UZyM1FQ= To: Simon Tournier , Ricardo Wurmus Cc: guix-devel@gnu.org Subject: Re: Building container images with nix2container In-Reply-To: <87o7c36sgu.fsf@gmail.com> References: <8734tijjpy.fsf@tilia> <87wmqszwif.fsf@elephly.net> <87plwjilke.fsf@tilia> <87o7c36sgu.fsf@gmail.com> Date: Sun, 17 Mar 2024 18:09:47 +0100 Message-ID: <875xxkkco4.fsf@tilia> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=37.187.96.121; envelope-from=lewo@abesis.fr; helo=kordia.abesis.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.76 X-Spam-Score: -3.76 X-Migadu-Queue-Id: 8ADC46E010 X-Migadu-Scanner: mx11.migadu.com X-TUID: bFF3j1+cAaXC 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 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/ Yes. But I think it could be improved by taking the nar size into account. lewo.