From patchwork Mon Jul 15 14:21:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 14668 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4B1D517022; Mon, 15 Jul 2019 15:22:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 495B317003 for ; Mon, 15 Jul 2019 15:22:07 +0100 (BST) Received: from localhost ([::1]:39252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn1ri-0004X3-L4 for patchwork@mira.cbaines.net; Mon, 15 Jul 2019 10:22:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60572) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn1rg-0004Wr-Fk for guix-patches@gnu.org; Mon, 15 Jul 2019 10:22:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn1rf-0001DK-JB for guix-patches@gnu.org; Mon, 15 Jul 2019 10:22:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39832) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hn1rf-0001DA-GG for guix-patches@gnu.org; Mon, 15 Jul 2019 10:22:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hn1rf-0000O0-Bc for guix-patches@gnu.org; Mon, 15 Jul 2019 10:22:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36668] [PATCH 0/1] Add 'eval/container' Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 Jul 2019 14:22:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36668 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36668@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15632004981436 (code B ref -1); Mon, 15 Jul 2019 14:22:03 +0000 Received: (at submit) by debbugs.gnu.org; 15 Jul 2019 14:21:38 +0000 Received: from localhost ([127.0.0.1]:48651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn1rG-0000N4-Jo for submit@debbugs.gnu.org; Mon, 15 Jul 2019 10:21:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:35449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn1rE-0000Mx-VI for submit@debbugs.gnu.org; Mon, 15 Jul 2019 10:21:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60485) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn1rE-0004SC-38 for guix-patches@gnu.org; Mon, 15 Jul 2019 10:21:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hn1rD-0000x8-ER; Mon, 15 Jul 2019 10:21:35 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=39922 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hn1rD-0008EP-0h; Mon, 15 Jul 2019 10:21:35 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Mon, 15 Jul 2019 16:21:26 +0200 Message-Id: <20190715142126.14612-1-ludo@gnu.org> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello Guix! This adds ‘eval/container’, which can be used to implement things that are almost derivation (pure computational processes), but not quite: processes that produce side effects, that need to access the daemon, or that need to talk over the network. It doesn’t have any users currently. Guix-Jupyter-Kernel will probably use it (to spawn proxied kernels in isolated environments), and I think Ricardo had a use case for it in GWL too. What do people think? I wonder if we should target ‘run-in-container’ instead of ‘call-with-container’, or maybe both. It’s also a bit troubling that ‘eval/container’ returns an exit status instead of the evaluation result, but I think it has to be this way, more or less. Ludo’. Ludovic Courtès (1): linux-container: Add 'eval/container'. gnu/system/linux-container.scm | 49 ++++++++++++++++++++++++++++++++- tests/containers.scm | 50 ++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+), 1 deletion(-)