From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YIXwAeN962PNZgEAbAwnHQ (envelope-from ) for ; Tue, 14 Feb 2023 13:26:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MPU4AeN962Pd5QAAG6o9tA (envelope-from ) for ; Tue, 14 Feb 2023 13:26:11 +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 C62273E348 for ; Tue, 14 Feb 2023 13:26:10 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TKMmV6FW; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676377570; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7sGDBcgcc2Xx8mM18vTerKE03CLMjBqo/NI4m2Ysm94=; b=scTKkm9DYE6vdw/aigIZVOrJIxcsQ1zWUG0aOjjiHCSawslX9a2aCq9eBPEU83BiVzMUKe hWmVUraeTpM7QgmWtVhUaaoq3PjqCtwPaWduy6OjlmEqH9L3mi2J5LdZ+1Yh7PWFvyHse8 ryGiZjPO4evQ3kSi3AKOhLufY5z6A/0kOr6ryWhuxSg40hKvhflS9ST7mwQEB21RwW5O8M vI5ER7Hz4CAohL0QLE5Jvwy6gEEVvtob1LZIpXn0elIu1fnUGJ32GSXi/78eo15Y+rAxmA tzhQiYe4Fx+DHGr/1yfbVW0AAy7dDQlOhMNOMtr37rKtWD85kXqxVQPrvjWCrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=TKMmV6FW; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676377570; a=rsa-sha256; cv=none; b=t+taACcgstQQcVPTSN763Enpe1t8EBaxcJoLvcVuuNp1sMutJY+waBX0f74Mda8AKmJm9j X/KeokopcZ8jugYxsuFv16X2I7S+uSkkWw/OYltIDiEvEzNyriivxdYLgxoSRJJFz4srJ6 bXeo9BrjbD37x9AtC/Ytqps8j/eSlW6vPQEM6gQ9Pgsy3dKHUi6RoG4R/aMrIzjeajSlrZ 0StP09DNRiR6oGMCOcxO3tRsIOdRVhvsi0A6+YpHxalsFSY+NyP37gMiOb9J7Lc0eAp19Y 9D8gNLVSJVryMZzhQ5rmABFP1qiybL9fpEIKw0ANu2sagEHzCUsKrh2bvYzRag== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRuMk-0006oD-79; Tue, 14 Feb 2023 07:24:58 -0500 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 1pRuMj-0006nj-0e for help-guix@gnu.org; Tue, 14 Feb 2023 07:24:57 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRuMh-00079m-9r for help-guix@gnu.org; Tue, 14 Feb 2023 07:24:56 -0500 Received: by mail-wm1-x331.google.com with SMTP id j29-20020a05600c1c1d00b003dc52fed235so11440115wms.1 for ; Tue, 14 Feb 2023 04:24:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=7sGDBcgcc2Xx8mM18vTerKE03CLMjBqo/NI4m2Ysm94=; b=TKMmV6FW2h0pE8ICsUJR8K5mwsJmLK13wkMsPddib8Z6p+Z27JNnfmhRqYC9FN4RWk j79o9tkNsN7AJYoT25KsNEpBSpRNOun+rayrTDFwZd+C/bagZuruTWNHWZ3b060Nlj7v 034ghCMvw0IUoV6CqlwAGD+cGmDaO4EmUWmN2rHjnYENJTZSGDjXHnMS4mqF6coYRmPt yDncyxjlP2DfK+lO95vBjVbBDmusKZQG4wsjBswKTs6lURxPoPNp6it2p75TmnJeB9tF FoZAVApXUJDKq9D2iSLZXQ/moy38fsmB66jr57u/2mIbLuHZmbN1CRLR5EHos8TgKzjl Ut5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=7sGDBcgcc2Xx8mM18vTerKE03CLMjBqo/NI4m2Ysm94=; b=H9R6OcAdC4pEo7QicZC9yco7c9RgTOEWhW6NTgwwzC0Rw52Z1NoNBHMLvwkrwmWKJG tgfrKHwBv7iM97TJrknoMrObzTQccMTRK/5gJkwdrSUg9VYF5gMXUc5thhDQrw1r7gK9 22/29u/Px1aQ/RnrFkv7J/sYkpkToDZQLJx2XGfuY3qjr4VctbzAAmx+bZpprrLFB3Fg iC4YhFlWeos9elH5MvD34npc8FVk9CiEjVhhHYw99JnvsH8W0bAwXc9hyy+8o3mGim6q gCXTxo08Hj9pR7HyV4Rf8NGnL6TtOZYcP1ghBJJ/NMxNbzoh2XuSDrY1hzVINkyOr6t6 8vUQ== X-Gm-Message-State: AO0yUKVX8EWks+ivjyVk0z5m2Me5csvxMHk6KiF4lp0IP6gOxCVnj/2m ITHNrKK/RR3lusG52qeSPkJculEr2po= X-Google-Smtp-Source: AK7set8DF4Qq7yxfr8p7170y7VwSj6G/RGV7ApgKya4FhCkaI1lrikRu+ryrmpjmKoM7KqXio0F0yg== X-Received: by 2002:a05:600c:1c8d:b0:3dc:5b88:e706 with SMTP id k13-20020a05600c1c8d00b003dc5b88e706mr2138672wms.1.1676377493511; Tue, 14 Feb 2023 04:24:53 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id m23-20020a7bca57000000b003de8a1b06c0sm20008925wml.7.2023.02.14.04.24.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 04:24:53 -0800 (PST) From: Simon Tournier To: Benton Edmondson , help-guix@gnu.org Subject: Re: Declarative Guix Containers In-Reply-To: References: Date: Tue, 14 Feb 2023 13:02:25 +0100 Message-ID: <87bklw1mlq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x331.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: X-Migadu-Queue-Id: C62273E348 X-Spam-Score: -9.83 X-Migadu-Spam-Score: -9.83 X-Migadu-Scanner: scn0.migadu.com List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: frrv5th2c7BO Hi, On dim., 12 f=C3=A9vr. 2023 at 16:39, Benton Edmondson w= rote: > Hello, > > I see under > that it is possible to imperatively run programs in their own container. = Is > it possible to do this declaratively? In other words, can I create a > derivation which generates a Guix Container, which I could then put in a > manifest? I read around but didn't see documentation on this. This example from the mentioned Cookbook, $ guix shell --container --network --manifest=3Dmanifest.scm -- R is declarative, no? Well, the profile is not =E2=80=9Ccontainerized=E2=80= =9D, --8<---------------cut here---------------start------------->8--- $ guix shell hello coreutils (env) $ echo $GUIX_ENVIRONMENT /gnu/store/d5pz9lmmi9zr7l6zpj6z6708vsrwwv29-profile $ guix shell hello coreutils --container [env]$ echo $GUIX_ENVIRONMENT /gnu/store/d5pz9lmmi9zr7l6zpj6z6708vsrwwv29-profile --8<---------------cut here---------------end--------------->8--- and the container is created on the fly, then populated by the profile. You are asking for another feature, IIUC, as described previously in [1,2] and I guess you would like [3]. :-) 1: https://yhetil.org/guix/87zhphft98.fsf_-_@gnu.org 2: https://yhetil.org/guix/877dvn10ro.fsf@dustycloud.org 3: https://yhetil.org/guix/87fu6olig0.fsf@gnu.org Or maybe you could be interested by: https://guix.gnu.org/en/blog/2017/running-system-services-in-containers/ Cheers, simon