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 ms1.migadu.com with LMTPS id iL0pLBpnX2bFCAEAqHPOHw:P1 (envelope-from ) for ; Tue, 04 Jun 2024 21:12:26 +0200 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 iL0pLBpnX2bFCAEAqHPOHw (envelope-from ) for ; Tue, 04 Jun 2024 21:12:26 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=RyTiQSk0; dmarc=pass (policy=none) header.from=gmail.com; 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=1717528346; 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=+7rHfUFuGXTk5d7yKdi+EEC8wzxRzRA37uCgijdl0jY=; b=O6JOuky05Myk2k0H2SjmieRfG8cgJ/+Iz45hnYlPRkkVLwoG92upV55YSVlmMMWMSsZ4nH BMp53xxPB5XFWb3NQIfFoQbGih8Q+0Q80Nig9s8q2mlBU5N+n3M8d4A0jaZd0oXcorD3Cc Qy/4VorJxVZJ6XBuTXKbCXPAtB4typKIgfVvpEv+FnidaJudqe68nS4RHMtF47Rz+Kz98r 5vX3d0CYL5uzU//5P5bysz6cc6ycO4P3dxNrHsEAQOo7Mt6nZZ7FHExC6YL9KkWIL85ib/ bY3R5bdf9S7Ckn/AaAWxPY62/eZWHISq6MPypuev792GOkUW/gLkmzK/UwVCug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717528346; a=rsa-sha256; cv=none; b=egYuLabdsMmlzMoPfa0Z67fyGA2xS4SXEEFxTc3P1bmjwOD77GKmByhvO+XthZyVA3pzmL JeZz++DwFSd9cR9Yk3CxtldMtbT6z0l9Aeuv+Q9kvlpTEoUmpea79PL3ENqdVY4NPm/jTR j41Iu8OSf1JciE3i0WciBlRYA8QSt+juPi+Eh4XPDbkbyo+wu+icrErHUPQx9RRxV4JkC3 NWdQxu0Bv5hBj+yCZIPd5J7x2kBIt5G2BmCsCXAoP0YbK1DZHdoSHRcYg2616q9PbDA63e kE6xRl+moT2CLUeWfxjkWfciYH4kK50tFrTvnuCN3HWiyxaPsKhvIB35pswNhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=RyTiQSk0; dmarc=pass (policy=none) header.from=gmail.com; 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" 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 7BFD07F360 for ; Tue, 04 Jun 2024 21:12:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEZYH-0007dl-RJ; Tue, 04 Jun 2024 15:10:33 -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 1sEZYG-0007cp-PN for guix-devel@gnu.org; Tue, 04 Jun 2024 15:10:32 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sEZYE-0001PG-EU; Tue, 04 Jun 2024 15:10:32 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4214b2c5d40so155875e9.1; Tue, 04 Jun 2024 12:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717528225; x=1718133025; 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=+7rHfUFuGXTk5d7yKdi+EEC8wzxRzRA37uCgijdl0jY=; b=RyTiQSk0FL4rvqdRoTAOrXOp6q8W8F+6FdeuUazmo9PbtmxTKjeK4dH/2KLW7WVK9z lKqgXWRx+/e1vm7M7JBIBo82MRdnYjwEk+UOGsm9j4LDNEM8wN4+UdxE1XfHhJWKlm03 qxtWrp0CRlWjun/CcdK3QBtNw2lHY3yB7AfKzIAR9JIFl2A1gmMB+EhihpgZXhSWyG/q DTGpA3cqve6jGYI2O3YM8470J+cg4ksKbrumcSMvF/ox+YCgRSGX5HRQxCNYtA23meq3 TovC35sgLlFbqhgDKh7IbSFDKCtUhALd8MbPRl43oT5fm8C/8/NFp3pk4BbTV+9ot0To BgpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717528225; x=1718133025; 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=+7rHfUFuGXTk5d7yKdi+EEC8wzxRzRA37uCgijdl0jY=; b=Y8blgtyBYTfqKSYIEBzrXOdT90TII6c8LqHBi4v1orPAWKg+8CCqGX67W6stHwawkn 1t7SAEPvVJ850S7EyHLGnvTFuK5yhFFnqFrkBJyY872NGD7Wjzcu6sgtVda5amYUSKcD TAcyn0eEMcalLqD+dg2R6PsM2D4gRF7j0S9liRf1LlApHD7q+0MjYDy6cdmRit/q2LkK dR4yZlu5NjvF+HeA4LVhVitTNkL7QrNptvTbmsCCFJ+kXRSAj8UvMeVM6/5q3qNR6SHr gRKARHDcrDQH49UrKMfVHvNgRP6GSZ0e0KVeNwIDij33jf+tLUe4noBVipnIHR7YPHAm NC1A== X-Gm-Message-State: AOJu0YyDD3UrGk745pauDdDJvrCHn8boFHvosT5GWnUX3GNV22vftCUO HxR1/+ydhXHRL2Q4I7rqHSDkzy5qEaC5lU4kEjaifiAOA+OCbxGwae6IEw== X-Google-Smtp-Source: AGHT+IH/khHvvdxslatBs8h2WwcJNGMbeikfc5195f2YWni9hq184nMh505tNSaEZCwMyNpOaEdR4A== X-Received: by 2002:a05:600c:1c84:b0:419:f68e:118c with SMTP id 5b1f17b1804b1-421562be89emr3842325e9.1.1717528225194; Tue, 04 Jun 2024 12:10:25 -0700 (PDT) Received: from lili (roam-nat-fw-prg-194-254-61-44.net.univ-paris-diderot.fr. [194.254.61.44]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-421542e207esm24888565e9.22.2024.06.04.12.10.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 12:10:24 -0700 (PDT) From: Simon Tournier To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Ricardo Wurmus Cc: guix-devel@gnu.org Subject: Re: "guix pack -f docker" does too much work In-Reply-To: <87cyp0ojc5.fsf@gnu.org> References: <87sey0lqpn.fsf@elephly.net> <87cyp0ojc5.fsf@gnu.org> Date: Tue, 04 Jun 2024 20:14:04 +0200 Message-ID: <875xuoy3rn.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::32c; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32c.google.com 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, 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=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: -5.17 X-Spam-Score: -5.17 X-Migadu-Queue-Id: 7BFD07F360 X-Migadu-Scanner: mx11.migadu.com X-TUID: M9UaRfwtWYuU Hi, On Sat, 01 Jun 2024 at 15:58, Ludovic Court=C3=A8s wrote: >> 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 = terms > of disk usage: a single =E2=80=98guix pack -f docker=E2=80=99 run would p= opulate 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 = which > one is better. I share Ricardo wish. From my perspective, I do not care much about polluting my local Guix store when building Docker images. Because all that will be removed at the next GC =E2=80=93 once all the work is loaded elsewhere. However, it appears frustrating to build again and again complete large images when the difference is sometimes just a couple of packages. I would be in favor to share more derivations between images. :-) Cheers, simon