From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kJK5FMZEQmWIcwEAG6o9tA:P1 (envelope-from ) for ; Wed, 01 Nov 2023 13:29:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kJK5FMZEQmWIcwEAG6o9tA (envelope-from ) for ; Wed, 01 Nov 2023 13:29:58 +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 00FE254495 for ; Wed, 1 Nov 2023 13:29:58 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=QAePP6rf; 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=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698841798; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=W7TdTmjKUhT1Zyd3aay4dKSKwUBPayPLYhRO/OxE4o8=; b=BY83l98a4fNZ80hhYP21sBLmZ/iuzFLsbptDrIXGBQwWGWYFM0qIedVBcGJB/9NFijcU2w /38QgGE61ojYeamewA/yP+9t/BgiIraAxic5WPetK+suYAUMfVQm1PpKaU3OdsjL4cLqWU rQGJ4BbalBIaNARNk72YnOSpedAjNq9inKkySPLgHc9E/33iLCILT2AVT7gNiA0tQ+6hNr d6COcNMYkgoU5Nr8UvfQkQ8ZsLzg1CJhAd/VTqaKJm4tBJBrdLDVgaaXvU2xHx1ANQKBfE 2PPMLHX2kzq8Tqs/7Ir9Ee+N+aG9awKqNcoPOki8+PQRlrm/zL5rIi13oN/uMw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=QAePP6rf; 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=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none ARC-Seal: i=2; s=key1; d=yhetil.org; t=1698841798; a=rsa-sha256; cv=pass; b=YoLBkHFflzSTcrzjbAAHINxwptTR3k+qH2iGdlKtdVLn389UXpJRxXb8unuAV6ZI/WTaJa eYyQDZ9rFsmUKd4eTaXLxOxPMACMycXFuDEh8arDhX1gsHMavFQPAGr7v9AQVdV+kPs1qQ +LeI3DkfJYXDgyIXEK/JVJzhSmFjZsd8QCdVk1glbrdFxdtjvLBGfjmlEn9dg40FGNBGLf YS55Krv3lOkP718PGagnDEu354LVThG/dY3/zV+QCLQ1B+oYe7yDeb3LaPM2EFAWaBVPdf qSaXHz4dYZK3j7BQVuRkS0wCYFA0rtqcC4ZvduZctA9vWEnTYT/PUJveOP5PjQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qyALe-0004RH-8l; Wed, 01 Nov 2023 08:29:26 -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 1qyALV-0004Ov-Gm for guix-devel@gnu.org; Wed, 01 Nov 2023 08:29:19 -0400 Received: from sender3-of-o58.zoho.com ([136.143.184.58]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qyALT-00029x-MC for guix-devel@gnu.org; Wed, 01 Nov 2023 08:29:17 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1698841750; cv=none; d=zohomail.com; s=zohoarc; b=LJpm5bqcDHncoSn55LKK3O+ZELDn76arpQbiOxBtGkbfbbVVb/Z/oIT7GZRUr5Jx4uHYDO1w7ghTnB9ZbyFlGxSpcX1iFWspMaw6ePpwbZYnhd9JYxFcfz68d7W/r9l8xIFa2o+AVUcDm96Vuh0E3rALmYJ1l58HvS5ffKgl42s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1698841750; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=W7TdTmjKUhT1Zyd3aay4dKSKwUBPayPLYhRO/OxE4o8=; b=euNXOY0XPk5BmzK9+k9ZPJ6OGLh0vm3XiQLTUu4WwSvQRfjE8vUaQAepAdYdNemBGBjINKrZb0KlDZOw+LLP5tZBqHJLLJ/6o+E5AzBlxTaKmaUQDZ7pNwXhP1cu2200PvnpkW7SFFNPVypWla7O9iYGSeWjGSTQ0owg1Q0+DsI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1698841750; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=W7TdTmjKUhT1Zyd3aay4dKSKwUBPayPLYhRO/OxE4o8=; b=QAePP6rfP3lj4HexE1o9bP6G1pD4YhT0jH13egxG8Ah8jfvFfcbW81jM15oPC4ex KTIXcRas5ZqB3MY/juGJFp0nE1vye5sCuQXSN8uEY4kWENpvzO4HdLh+O4Po2j8ZhNO KPpGLtSXgiZgTCj+GiD+Rg5aekaToe7ROfaZPLZs= Received: from localhost (215-110-142-46.pool.kielnet.net [46.142.110.215]) by mx.zohomail.com with SMTPS id 1698841747521591.0825962532743; Wed, 1 Nov 2023 05:29:07 -0700 (PDT) User-agent: mu4e 1.10.7; emacs 29.1 From: Ricardo Wurmus To: guix-devel@gnu.org Subject: Better support remote deployment Date: Wed, 01 Nov 2023 13:19:49 +0100 Message-ID: <87sf5pu06o.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.184.58; envelope-from=rekado@elephly.net; helo=sender3-of-o58.zoho.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: -6.54 X-Spam-Score: -6.54 X-Migadu-Queue-Id: 00FE254495 X-Migadu-Scanner: mx13.migadu.com X-TUID: /hOvKnL3d8K+ Hi Guix, I build software locally and deploy the result to a remote system with =E2=80=9Cguix copy=E2=80=9D. This works pretty well but has a few rough ed= ges: 1. =E2=80=9Cguix build -m manifest.scm=E2=80=9D does not generate a profile= . It only builds the list of packages. To build a profile from a manifest file we need to resort to something like this: guix shell -m $(PWD)/etc/container-server-manifest.scm -- sh -c 'echo $= GUIX_ENVIRONMENT' 2. =E2=80=9Cguix package=E2=80=9D cannot install an existing profile store = item as the current generation of the profile. It can, however, install individual package items into a profile. 3. =E2=80=9Cguix package --remove=E2=80=9D does not support regular express= ions, so removing packages that were installed with =E2=80=9Cguix install /gnu/store= /=E2=80=A6=E2=80=9D cannot easily be removed. Because of these limitations I cannot make use of a Guix profile symlink forest on the target system. Instead I build a profile locally (with the =E2=80=9Cguix shell=E2=80=9D trick above), copy it to the remote with = =E2=80=9Cguix copy --to=3Dremote /gnu/store/=E2=80=A6-profile=E2=80=9D, and then link that pro= file to a fixed location on the remote system. I would like to change this workflow so that I can benefit from roll backs without having to manually mess with symlinks. What do you think about changing =E2=80=9Cguix package=E2=80=9D and/or =E2= =80=9Cguix copy=E2=80=9D to better support deployment of remote profiles? --=20 Ricardo