unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: Felix Lechner <felix.lechner@lease-up.com>,
	 Ricardo Wurmus <rekado@elephly.net>,
	 guix-devel@gnu.org
Subject: Re: Better support remote deployment
Date: Thu, 16 Nov 2023 16:23:00 +0100	[thread overview]
Message-ID: <87y1exu3hn.fsf@gnu.org> (raw)
In-Reply-To: <87fs1ggvlt.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 08 Nov 2023 09:36:46 -0500")

Hi,

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> Felix Lechner <felix.lechner@lease-up.com> writes:

[...]

>> How about a 'remote-user-profile'?
>
> 'guix package' is already the command we use to create profiles; maybe
> it could accept a '--remote' argument to operate on a remote machine?
> Or is this not what 'GUIX_DAEMON_SOCKET=ssh://your-target guix package
> -m manifest.scm' can already accomplish? :-)

Doing that confuses ‘guix package’ because it’d try to perform the
effectful part (switching symlinks) locally, even though everything was
built on another machine.  (It’s also slow due to RPC round trips, as
Efraim wrote.)

But yeah, I think we could do something along these lines by isolating
the effectful bits and evaluating them remotely when needed, like we did
to achieve code sharing between ‘guix deploy’ and ‘guix system
reconfigure’.

That said, I wonder if this would really be more convenient than SSH’ing
into the target machine and running the commands right there.  Perhaps
I’m missing something about the use case?

Ludo’.


  parent reply	other threads:[~2023-11-16 15:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-01 12:19 Better support remote deployment Ricardo Wurmus
2023-11-01 15:20 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-11-02  9:59   ` Ricardo Wurmus
2023-11-07 19:07 ` Maxim Cournoyer
2023-11-07 19:45   ` Ricardo Wurmus
2023-11-08  2:12     ` Maxim Cournoyer
2023-11-08  2:39       ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-11-08 14:36         ` Maxim Cournoyer
2023-11-09  7:38           ` Efraim Flashner
2023-11-09 15:01             ` Maxim Cournoyer
2023-11-16 15:23           ` Ludovic Courtès [this message]
2023-11-16 16:47             ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-11-21  1:33             ` Tomas Volf
2023-11-23  4:24               ` Maxim Cournoyer
2023-12-10 13:49             ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1exu3hn.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=felix.lechner@lease-up.com \
    --cc=guix-devel@gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).