From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 4Gk/ITspW2YhHgEAe85BDQ:P1 (envelope-from ) for ; Sat, 01 Jun 2024 15:59:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4Gk/ITspW2YhHgEAe85BDQ (envelope-from ) for ; Sat, 01 Jun 2024 15:59:23 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=dB27mq4x; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717250363; a=rsa-sha256; cv=none; b=oO05+y0H28FE0sQ8JujkOs6xsprIcd8VGCHLcv75XSVW1CD7uMRBwAztTVarJGKLMy8Z/F lPzsmjX7LlXooqXqhBte5SHkVxKuNrYlnKRCXGpmkfblia3fY1ZCfSrWFZwq+q5PaM/iFd COPpOOqP6mi4EElIOMP/K42DpyyrL4Qz30PjRXReh9Zz1Y5aB1/JAitVYH32zeGNUzUky7 Nbr5/wEznDhAJ0dNcXYiHkoSPjUhUmvaQ82xGApNXs0e5se0E0QmUxKEfPIINfNIK+52zO C7mZd+0fB4AXSDOEL7NrmcqUcVfajJmDJp9nu6LNpS+UJzpJJyytteDtznrUVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=dB27mq4x; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717250363; 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=BkuzPyhP8ALLF5FWdGhkHSs1z6fymm70edWpub5n++w=; b=ByxgzLSgWyziKaJa3DUB6nCqU0iz0bs/s3zAntAm7QcTA6zyTTocWXiLOJjO1obCpPKzpv JIU/4KRWQ9JKd1K7KuwMtmj1M6ld0gh+inxKKUqCJAimB/U7U02beJcPCjATOXWPUizK4Q 7fLCnLme5k74hqxIvYciZ6ndSlml4tnXWMv+83ODbO/rQGbBFAEHvCdLBT0WoeC6PjH5yj +c9LudqxioNXPsN9dTTE4/IKMfphuwTur/P//AXadWAkBYA9oS4kGl+Hgbh3pHnZ3awvsM UZN5Rsu/EvibiBD4HgUnxgI/mtFOfmt5588C2PrP4SfIqSf5x7K18pozPjz1qg== 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 717A01D168 for ; Sat, 1 Jun 2024 15:59:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDPG5-0006RH-Oo; Sat, 01 Jun 2024 09:58:57 -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 1sDPG2-0006Qs-AE for guix-devel@gnu.org; Sat, 01 Jun 2024 09:58:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sDPG1-0007AN-KD; Sat, 01 Jun 2024 09:58:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=BkuzPyhP8ALLF5FWdGhkHSs1z6fymm70edWpub5n++w=; b=dB27mq4x8s/kUGuD7RGB 5qFShT/LOpi8WqCWzpI6u5GN+TY3mUzhX0xeC6mN/gKH1N/EiXsleXV1dwyUyw7xNijTmtEK4OQV+ 7BfMxMEvmo2/cynW11Q0kptDo95byzppKsvE/w0uAwBKdhN2Tc1UsFkobAy3A3kKopHYpG3Kwhrnw 7QPdvVsJ681GPVa8Gr7Ufp7C1H7uK0odWYoNZw21siWV/KEASdVUvht/0W8PWdnrP6pRQQ+BOQl8Y ekelaAHZXCSpU/fdlj0/3cjAT/UZblrwQ1d3H5Vn9zRxDQ8t791+ql4LaN/bRwL1Op8N20p7YkQ5q nuP6ZvhkZ2hC0Q==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Cc: guix-devel@gnu.org Subject: Re: "guix pack -f docker" does too much work In-Reply-To: <87sey0lqpn.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 29 May 2024 14:58:44 +0200") References: <87sey0lqpn.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 14 Prairial an 232 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de l'Acacia X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 01 Jun 2024 15:58:50 +0200 Message-ID: <87cyp0ojc5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Queue-Id: 717A01D168 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.85 X-Spam-Score: -10.85 X-TUID: pFEL1vmXX9C/ Hi, Ricardo Wurmus skribis: > a few months ago "guix pack -f docker" was modified to produce layers. > This is great! Unfortunately, "guix pack" itself still produces one big > tarball containing all these layers. There is no sharing of previously > built layers, because they are all hidden inside the pack. Right. > 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=E2=80=99s less nice in te= rms of disk usage: a single =E2=80=98guix pack -f docker=E2=80=99 run would pop= ulate the store with roughly twice the size of the closure. I think each solution (single derivation vs. one derivation per layer) makes a different tradeoff. I don=E2=80=99t have a strong feeling about wh= ich one is better. WDYT? Ludo=E2=80=99.