From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OEmAA7BINmGQuQAAgWs5BA (envelope-from ) for ; Mon, 06 Sep 2021 18:58:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MI5/Oq9INmF5UgAAbx9fmQ (envelope-from ) for ; Mon, 06 Sep 2021 16:58:23 +0000 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 5811F141C4 for ; Mon, 6 Sep 2021 18:58:23 +0200 (CEST) Received: from localhost ([::1]:59300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNHwr-0004C6-4Y for larch@yhetil.org; Mon, 06 Sep 2021 12:58:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNHwF-0003mw-1k for help-guix@gnu.org; Mon, 06 Sep 2021 12:57:43 -0400 Received: from mx1.dismail.de ([78.46.223.134]:12492) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNHwC-0006P2-I3 for help-guix@gnu.org; Mon, 06 Sep 2021 12:57:42 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 72952ab7 for ; Mon, 6 Sep 2021 18:57:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=date :message-id:from:to:subject:references:mime-version:content-type :content-transfer-encoding; s=20190914; bh=1vaHeNFmTwhK/iB3H+zVm 4LnofbkTZOdFAhrAftgWZQ=; b=L5myQGIhJZuqJpQZh1uZR1bIzldqAJgPY+6RK pUFTZWqF7cGqfxcU2qbXTJYRDPnOYDfcoeodFObATswMCzmvDe995Q4UY47Ym3JY RiDAwintNyweXjH5ta+ONqhAJ3XhiFv6jgzo1Xv+77RK+u7sGagkXgBesuZ2wrHX OL1hbl/dodSOo5rHP3qMY+eWFHb8f7JRDeh3Yh4knLMLIuDWBUSqvRLvDCmVmnYB 93S6QQKiw0efAy12jB1whsX1/DZcEzVWjTboFxK3tzUvsPg5T78mvo2TXxnrGeYZ lZyowStPLJrV7GhsUdmKJVKPH77ypQKF51PLMfc6cxe1/7q0Q== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id b4b8e03e for ; Mon, 6 Sep 2021 18:57:36 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 326ed8a6 for ; Mon, 6 Sep 2021 18:57:36 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id c1d3208b (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Mon, 6 Sep 2021 18:57:35 +0200 (CEST) Date: Mon, 6 Sep 2021 12:57:32 -0400 Message-ID: <20210906125732.GB27512@gac.attlocal.net> From: jgart To: help-guix@gnu.org Subject: Running make inside a Guix Container From Outside References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630947503; 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: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=niv6B7/LP6QpItCUGQt5ebur0uH9ofi00uRPunGxlI0=; b=ETfu2qbE9dvsAFN81PEnvZwnFhmcyMY/isrbRbkAtUxpJCpQfDZG8/pN0ro5Quq6w3zE2g IIKC6bEQrhNJ/qIhc+Z93bnY0D0V9KUZTfskyj886M7ZoHPxcsCZJCp3ZXnwq1SPJbZbq2 /zsjHuq1L5S57ZJ79xxhuiURYSWCK0akOsllJmMiJxpcLzKQaGohgEiAvVdb2Df5ggTdqq qC0YLmRkfL7TN4/ktkb4ov1xx5ZoqqcVFgdS2Xl5JiV2MkO1w43D5juVMp/Cmjts+syICP vlpwoUOAZQg8VNFEdTTput/5TePpp4C0nutCbDh+Gf4nuiyRSz96++xu7PLxYg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630947503; a=rsa-sha256; cv=none; b=PmkaFKNrPY3KEV/RUB6Q0N49j6rxgGFfIXW4XcsVWytM3jkFAKCEWNi2XHBDBfrxjed5AF dHMlGMUD+XlN5JXKSw3i8UnGpnPVKtwuDO7SrBMd+nbMVd/cL9LbwW8NNtC0Ep+c5U9LK5 nzZMTqXkvIGU5txcAAYGRprvFzTy8eklKkOLGgEN6hffB8bfeUgQetuJkVgnwVODFGV5Lq UgpMAR3/mToL74GHWBB84n8378LVdT/oRCjnrsNbZLezSGfS8Y2tH8cs7dcRyxBRNy4WtF 0JZhJ+q6QcMChrIKbPcNg6c737ccbdrOux2Xzo31rds6/ODXVsjwMjI7L5pHdw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=L5myQGIh; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=dismail.de header.s=20190914 header.b=L5myQGIh; dmarc=pass (policy=reject) header.from=dismail.de; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 5811F141C4 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: ceHtthIJR4R8 Hi Guixers, I started making a quick bash script that started like this: ``` #!/bin/sh git clone https://git.savannah.gnu.org/git/guix.git guix-3000 cd guix-3000 guix environment guix --container ./bootstrap ./configure --local-statedir=/var time make exit print "ready for hacking" ``` One of the problems with the above script is that the `guix environment guix --container` blocks `./bootstrap` etc... I'm thinking of rewriting the script in python or guile using some form of async to solve that issue if needed. Once `guix environment guix --container` is unblocked by me killing the process manually, the following commands run outside the container and fail. This is expected. So, I ran `guix environment guix --container` in one terminal and opened another terminal to see if I can first test running commands in containers from the "outside" with `guix container exec`. I tried `guix container exec PID "./boostrap"` and it didn't fail. In the other terminal running the container I looked to see if there was any change to container's directory structure and there was none. I also ran `guix container exec PID "./configure --localstatedir=/var"` and `guix container exec PID "time make"`. Am I misusing `guix container exec`? Is it currently possible to run arbitrary commands in guix containers from outside guix containers? all best, _________________________________________ / 3B1D 7F19 E36B B60C 0F5B 2CA9 A52A A2B4 \ \ 77B6 DD35 / ----------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||