From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kMqFKX2uymM+1AAAbAwnHQ (envelope-from ) for ; Fri, 20 Jan 2023 16:08:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MLF3KX2uymOU/QAA9RJhRA (envelope-from ) for ; Fri, 20 Jan 2023 16:08:45 +0100 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 403CAB601 for ; Fri, 20 Jan 2023 16:08:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIt03-0007tx-53; Fri, 20 Jan 2023 10:08:15 -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 1pIt01-0007tc-Cm for help-guix@gnu.org; Fri, 20 Jan 2023 10:08:13 -0500 Received: from mail-yw1-x112b.google.com ([2607:f8b0:4864:20::112b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIszy-0005hS-8W for help-guix@gnu.org; Fri, 20 Jan 2023 10:08:11 -0500 Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-4ff1fa82bbbso29752237b3.10 for ; Fri, 20 Jan 2023 07:08:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greghogan-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eAFou32RcB8P+hGXdSDB1ZOfCwtI1QwmOzlx6lWxABY=; b=CZEj89dLCTWIt/vbA5s3oOcFdsZCr0M7f6jGDDVARSPN29JTPiuXQPLzc7loMsVcab tA39S0N/UJMeTZDMIOzHI4VdjVZK90GfGQyuSDp2oa/tuTo8FoJIELjUSP4v4qL8O6jC Pj2+yea4ET48MLk0pP9CNvXRCCnffeu20QL7T32pnN46+wddFfr6LT2FQi1VY2y5GZG3 icCs+NOyhtckmYAHO3Ifjvrd10hzZyZ01o9dHtRueAmAtQhvLwlnTIqYZ85DEmt3F3Pr Rc3IQa4d4Jtja5G927EQrBNuy9acAJPLD5dYdtlSpR99LDR/H1sFtsx8gNEGxOlrL8iu 3k0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eAFou32RcB8P+hGXdSDB1ZOfCwtI1QwmOzlx6lWxABY=; b=yC1EPEanYkGI+cIhKWutEvJ/KG564EALLGdqXY/gK4a5Tz+KJZfHVVi/DNAF/SMq2t 7mlJJuTHWHgjvh3LWwlckHeB5djZt5RFograk31dbO2cDjnqjn9O6ETt6IAQX6kpTbS+ VCJtiS26hdv55Ud+ue6LJRnwOY1lxI8P59TsCPsM60N9hs7Yo8cOccjNHUkq62Oh/8ot BKYu3DJCKcG01Lia6A1pGSyGN8XCFzv1gZlBFfzGvPB637XKawdxdevKsPfcGIW/pr6h urEX0IJcP481qMwAGxkPcclbZIseNBHamyrPE6PPTSsSWkhMlWm0UU+R+xL+qaYTN8L8 jgVA== X-Gm-Message-State: AFqh2krr0OzY0j/arr5S+1MIYFCgMG63l98y7lPv55JncQt5j4SfMgHx VbAmnH7R7oP/dEu6ePsjft4+LGMwfDxP8w2qYY+9bg== X-Google-Smtp-Source: AMrXdXu0bkQwRKogYNWS0INtJMKorp4XLus4EwA2mdtKXjV1uUIqVVndynUgO47ynoxdjHmjl6HMVlSinLYUUP5i2gQ= X-Received: by 2002:a81:9244:0:b0:426:6938:b154 with SMTP id j65-20020a819244000000b004266938b154mr2111488ywg.511.1674227289011; Fri, 20 Jan 2023 07:08:09 -0800 (PST) MIME-Version: 1.0 References: <87h6wlqurx.fsf@gmail.com> In-Reply-To: <87h6wlqurx.fsf@gmail.com> From: Greg Hogan Date: Fri, 20 Jan 2023 10:07:57 -0500 Message-ID: Subject: Re: specify custom manifest->friendly-name for guix pack -f docker? To: Simon Tournier Cc: =?UTF-8?B?UHJ6ZW15c8WCYXcgS2FtacWEc2tp?= , help-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=2607:f8b0:4864:20::112b; envelope-from=code@greghogan.com; helo=mail-yw1-x112b.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674227325; a=rsa-sha256; cv=none; b=U/un8wiBbUK7L+QLH975hHD9CPx3QTu2Kesa+xmjE2jpG5U4luSiQo7wkitIeXA8zzEsNm kX1fbDGRXsuZ33Ie6bJFaJv9n1uaKFXFJ2A8StSgq1lGD99n5dgSl5uvhzR9wwngyaDF4W gkzkm0SwnXQE3llgxEcHgqoe/rscj5pioA2X8MZhE54kbpqV2y1O+Kjt12io1WOi6Rpx8B HwDHJdLArtrRjjV5fINX+tGPjA/NYMdgRoAsGSEDfE/Rv+7NzGlT9a982OJ/hmQUgx7CnC zrAHPSOTu44FTGgR83G/OUxc8Npb51W7myM0jRuofzS45oWTTkpprWCAeiok2Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=greghogan-com.20210112.gappssmtp.com header.s=20210112 header.b=CZEj89dL; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674227325; 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=eAFou32RcB8P+hGXdSDB1ZOfCwtI1QwmOzlx6lWxABY=; b=KpgOgXavlGkUmHlhyIYwNpu6Oy3RZIOWM53zUrL5ceLh+MGdz6cIUHvUq4UCsIwJ/WUZWr OLV7TLZcLfMnbaSP/MvcEQaxj/5NXp4Z/mBDCtpy7UDvYWkUJaw8FFD1cEGLRmSaX6sA8b lMxksUgyTrO4l25GSG0gH0dIMJ33ROjX0rCl1WqRsQKXjiCpOsp8lja4if0/dCmhV+P1L4 zVnS7RAI75BUceewJuTn8NxMz7bbmEZH+Byf1GGt1gPjr3xPUrqn+4LidRmmU3gXKkz3v+ qWDFxrtUNr2iWYE6Uzg3M9o3L9dArTZyNR3vGb7/l63lCycfAddAq6ctmYhPeA== X-Spam-Score: -7.93 X-Migadu-Queue-Id: 403CAB601 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=greghogan-com.20210112.gappssmtp.com header.s=20210112 header.b=CZEj89dL; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -7.93 X-TUID: D/GHUq5tn0z2 On Fri, Jan 20, 2023 at 7:18 AM Simon Tournier w= rote: > > > Maybe then add an option to guix pack to accept optional name? And if n= ot > > provided, fall back to manifest->friendly-name. > > =E2=80=A6yes, I agree. It could be nice to be able to directly name the = image. > However, this would mean that the produced Docker pack would not be > bit-to-bit reproducible considering the same manifest. Other said, the > bit-to-bit reproducibility would require three inputs: the channels.scm > file describing the revision of Guix (and potentially other channels), > the manifest.scm file describing the packages and also the name provided > at Docker pack build-time. > > Cheers, > simon The image hash already depends on `guix pack` command-line options --entry-point, --save-provenance, and --symlink as well as package transformations, --no-grafts, and --system. Since building a bit-to-bit reproducible docker image already requires replaying the command-line options, adding an optional name would not reduce reproducibility. Greg