From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: Guix "ops" Date: Wed, 19 Oct 2016 16:10:51 -0500 Message-ID: <871szcdoys.fsf@dustycloud.org> References: <87k2wx6t1e.fsf@fsf.org> <87vbgdy6x8.fsf@gnu.org> <87fv7h5zhk.fsf@fsf.org> <87mw1obbfq.fsf@gnu.org> <87bnhzrjf1.fsf@gnusosa.net> <87382oejz8.fsf@fsf.org> <87insramsv.fsf@dustycloud.org> <87twcb81ve.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwy8i-0000IE-QQ for guix-devel@gnu.org; Wed, 19 Oct 2016 17:11:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwy8h-0007jC-VM for guix-devel@gnu.org; Wed, 19 Oct 2016 17:11:08 -0400 In-reply-to: <87twcb81ve.fsf@gnu.org> 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, David Thompson Ludovic Court=C3=A8s writes: >> There's a lot of good ideas in this thread. Will be good to make >> progress on them! > > Yup! The need for this tool is becoming stronger, especially now that > we=E2=80=99re starting to run GuixSD on our build farm machines. > > Ludo=E2=80=99. So yeah, I'm going to start playing around with building some on some of these ideas soonish. I could use some advice, though. Assume I'm able to build the right scheme representation of the system I want to be run remotely on another machine (whether it's a gexp, whatever). What's the right way to go about this? Assume for the moment that I have a remote "target" machine already running GuixSD and I can ssh into it. - Should I write out an sexp of the system I want to be built, write it to a scheme file I copy over, and then invoke the guile command line tools to start it up? - Should I write out an sexp of the script I want to run and execute it as a normal guile program? - Should I build the entire derivation of the system I want to run on the remote machine locally first, then copy that over? (I assume this is possible, and eventually desirable, especially if doing mass deployments? But it might not be desirable in every case.) Would that use the substitute mechanism? Thoughts and guidance appreciated! - Chris