From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2IBCKPUX7mMWFAEAbAwnHQ (envelope-from ) for ; Thu, 16 Feb 2023 12:48:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6FwQKPUX7mN8MgAAauVa8A (envelope-from ) for ; Thu, 16 Feb 2023 12:48:05 +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 3884FD404 for ; Thu, 16 Feb 2023 12:48:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pScjm-00044q-Uo; Thu, 16 Feb 2023 06:47:42 -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 1pScjl-00044g-BX for help-guix@gnu.org; Thu, 16 Feb 2023 06:47:41 -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 1pScjj-0005Zs-RO for help-guix@gnu.org; Thu, 16 Feb 2023 06:47:41 -0500 Received: by mail-wm1-x331.google.com with SMTP id o19-20020a05600c379300b003e21af96703so208247wmr.2 for ; Thu, 16 Feb 2023 03:47:39 -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:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=7raDbsj17NS5MgIDFRYy67t4Ah0i0DV2Tk8QH3+1IWU=; b=DB0++7Sab6evpcxjE9j/SqiRIj0Z8t3pDxA8WHadLyF2Jo/HzGIzCXqGrfwpzBKeYy PNMbKxwHx8CQKbGZaqxDzfBLTXpGoIvEqojpVkRLZ92DUhXQp0p2JhVgr9VS4aPhCZoJ DRO5Y5gvZQVCL0qP5FfZJNMXziIKl4pr0fXBHkpYXqihDQZuHdQPgkyAWRG1mK5A4Xvm 6LWcHJ00TRrfsZI2y0IHHBKEygfjdBq5Q68IJpy7w6ijC+9r9/FLGtV7ZOkcSWOc33d7 dkLA8v0BU4M+kUT4xiYlFFPjd6CfsZvsnCgVZID4aojVIeubC1ft1CQhOZk5zs34o+CL RZcw== 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:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7raDbsj17NS5MgIDFRYy67t4Ah0i0DV2Tk8QH3+1IWU=; b=hIPuIRTU7EPtt8prVFM4dj3rJqyx/J7Gz8367DHIombNQ71EVucfy0fn5nHs+7h0AA 80aRp7Yue+QS752ouHizcv5VkivSWkdKiGYqjALW6DJsWP+NtHGk28KsDZTpnAuat4y/ LQQijJFONOYb0yz4kojyzzrlzOa1VXqb4axqLPdDljodBzL1AlCa6Ihj3OEzHIQwnHJe o/Ys9Df7h9Dn9rMlTylhKJmKkNnabDMtjcNsI03f3bf1gjvlwgorxj3dJPW6OGAeotb8 mnlqw4o1BGs+I1xW+FeZRQxo+Qb7kTLQSVY2Tn3lGK+7+iUoJfafeqbXVpYsHFsgF6ne rJwg== X-Gm-Message-State: AO0yUKVjIy4uotUOUcJGKO2k35ay+ghAKWh72zOgFsj17nBTdmpIepst i1g1RxaygfQd1nDUMd+8jfPfFiFU1i0= X-Google-Smtp-Source: AK7set+XAsVKiZI/xKqb5MDqZUcEm1dSKAkEnfb+aznUBn4/zdhUWVj7Z0vk6U15O9jLNrhPQd29XA== X-Received: by 2002:a05:600c:3c8d:b0:3e1:bfc:f57b with SMTP id bg13-20020a05600c3c8d00b003e10bfcf57bmr5479940wmb.2.1676548058007; Thu, 16 Feb 2023 03:47:38 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id x8-20020a5d60c8000000b002c53f6c7599sm1247315wrt.29.2023.02.16.03.47.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 03:47:37 -0800 (PST) From: Simon Tournier To: Kyle Andrews Cc: help-guix@gnu.org Subject: Re: guix pack isolation In-Reply-To: <87cz6ao2n0.fsf@posteo.net> References: <87wn4qgy6a.fsf@posteo.net> <874jroyti6.fsf@gmail.com> <87cz6ao2n0.fsf@posteo.net> Date: Thu, 16 Feb 2023 10:44:00 +0100 Message-ID: <86cz6ac5cv.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: 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676548085; a=rsa-sha256; cv=none; b=ilSFqb9dolWkJJiwnbL7GIYHw60nSC5XMgsLvs++M53FvI2gPXDx2gd4MW/SHIFYTf2vw3 nxmwRCzMFe7vdWKWUFCviL7rO+pSItR4KVqVfkBzALM5orB1EnU4EzdcPlfC77Ps104vcs flqjNS2gyjp+11X6Oyq+VCFlkncSQXJaxuvamg+ymZs6uN40RsPhehQSsH4YgQdeQ3XnuG FlCr3L5vtYSUZAT110r5PBCFKG9pcgxiAimHfl4qqmW9eYuaDHSJHkHHZVs4MLRlwkJJvZ kd2fraTW2RVRrXQlF0HcD7n3N+JpencVoNw/GE0S7cK0JD9BdrQ5pFVMEFGH3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=DB0++7Sa; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676548085; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=7raDbsj17NS5MgIDFRYy67t4Ah0i0DV2Tk8QH3+1IWU=; b=TmPAaBRYigWEl4ZQOkERxloCze5A9BjsY8+SU3qxfHJINzzs/Py3n6AYlNuWYRvXO37mvk dRiyOwDLJGt0wkKrZBEfe0BjfNzoiq96jPDX+JdRNR8bMq/rlwOqWjFU7Pp3Al2nj9+C9r Phd7Du76rV0dG2Rhk4Xr95N/RmuVOLCCOiWtWUtL/c9iLUm3AqYRqJeak0lKk11fBV8uNB mB5+SrsYnn7j4j5PwNgX8jExKrJ2LzOpgb4qNMFYi/gNLhFCjdl9enqRAy3dRlRtbVmy2M NytbD+PZfdW3IDuf3dJMHdQQjSJUtQgcUVl6r7C4i8CYhgBwUNVI/eFhb4Fe8Q== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=DB0++7Sa; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -4.83 X-Spam-Score: -4.83 X-Migadu-Queue-Id: 3884FD404 X-TUID: 4U46+rEbDmso Hi, On Wed, 15 Feb 2023 at 23:56, Kyle Andrews wrote: >> I do not have Singularity at hand, let demo with Docker >> which is very similar. > > Too bad! My system admistrators are against running Docker on the > cluster. The "relocatable" option didn't seem relevant to me since it > wouldn't apply any file system isolation. Well, I think it should not be an issue for Singularity to reuse Docker pack. ;-) Once the Docker pack imported inside Docker =E2=80=93 say e.g., d= ocker load < $(guix pack -f pack =E2=80=A6) =E2=80=93 then something like, singularity run docker://python-python-numpy-bash:latest python3 should do the job. Anyway! :-) >> $ docker run -ti python-python-numpy-bash:latest python3 > > The arguments in this command atleast gave me an idea. Maybe I am just > ignorant about how singularity works? I didn't know what -ti could > possibly mean without first looking them up. Maybe I just need to add > some additional arguments to singularity exec? Well, is this invocation singularity exec \ $(guix pack -f squashfs python python-numpy bash) \ python3 working for you? > Arguments in the manual which look particularly interesting to me are: > > --contain > --containall > --bind=3D/path/to/shared/file/system/location > --no-home > --workdir This depends on what you would like to achieve. ;-) > If you or anyone else have have any tips on how to best mimic the > behavior of the analogous `guix shell' command with an `singularity > exec' call I would use if guix was available, I am all ears. Basically, guix shell -C -m manifest.scm -- something is more or less similar to, singularity exec $(guix pack -f squashfs -m manifest.scm) something But since Guix is not running on the cluster, you need to build the pack on your machine running Guix =E2=80=93 this will produce a self contained archive, say using the format Squashfs (Singularity). Hope that helps, simon