From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id OLqSKgklxWbALQAAe85BDQ:P1 (envelope-from ) for ; Tue, 20 Aug 2024 23:21:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id OLqSKgklxWbALQAAe85BDQ (envelope-from ) for ; Wed, 21 Aug 2024 01:21:45 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=fWuQyEK2; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=dSKh+O2z; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724196105; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=AA4oWvXHVaw+NedFS4E4xBk09wLCddomeJw0BlV4SSU=; b=OgQPTY7+PSdlrJNm+mwQpdPY5J1m6njuZ3Qr276ofm8rhsPMSsW3w9f4sPt2mnnYXlZNCx 9WbVeh8mKDreL9faIKF/jUJZBjgHDgLYki+EF+VHSHuysXfRgKHOX2HVuDuVDTzWfsE/rf YivGEGeOM4dOegyTJ3pf2xr3dWKFpJGNwi5HsxrAWjQmMb6fcv22Kl+o1DqsH+q8vr6Xrm hkbh3LJ/hMLrydme/PyT6E0eJTND/8ygOcHCMq8ZVRzevRl9+RhOcPfwhEgyhn96Ebxu9T 1HVaVOR/YhZ+X8asT2oHOscx+toEo7WvvCk9hPWtX3FPL5zA/VdheoHWq8MGCQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724196105; a=rsa-sha256; cv=none; b=SnAygU00y1/rAkQFuKKla+onC5fcWocLYgQfiSPWBsfHf8EQJv/PQkERB9NcWOi/TuqE24 aBrjxMheC7qTXvA+FsNWZ56zLrbg+0AfUnX3m8ebQumxCRQbYJFKKEWZUfmZpcty00A7Xx Fl8DUAzsHPz9G70flhpdHXRPETGLK4SG2jsN8xVk17ERQXKmv7OWlIeXsR9KDmXBoIK6U3 fjMHR4vfZPx8vAWgR5Seap6kjHSIKvWEzftNC3Mgh4wBqqLk4dGsfnWBXognjw97pa8hTT ltg1cyg0skv6j88H8SGgkvuKCodc+GO4Bo0+1HZxOka+fKJwzBkrQc/7lDa4Mw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=fWuQyEK2; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=dSKh+O2z; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" 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 A9D681394A for ; Wed, 21 Aug 2024 01:21:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgYAD-0003eI-Kt; Tue, 20 Aug 2024 19:21:21 -0400 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 1sgYAA-0003dT-St for guix-patches@gnu.org; Tue, 20 Aug 2024 19:21:18 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sgYAA-0006ZB-Jm for guix-patches@gnu.org; Tue, 20 Aug 2024 19:21:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:MIME-Version:Date:To:Subject; bh=AA4oWvXHVaw+NedFS4E4xBk09wLCddomeJw0BlV4SSU=; b=fWuQyEK2gHtQQAu+eAvNbS4G8jbyPA888Fe9f5fpqOSd4AJzu+JomkxTGSMytS5OeFSw6tZvVo+ltpVJ39woiMxshhwJ+LgA8Uqs7qDDpMH8Sr9zlQe50VfU58FFoQu7Id36Vp2v89Rq4wagekWWPhEpMmz8J202UQ5JRCEvYCwRM5g5vP6sM4oE+G9a3ZCQJUG4otOoOwWcsvvRo4DNlc19SvO2Ft6y99T1tayCRmw6i3vycSPZramokWR/aYnBXIAFy9zFGXaHpa0wXMbDVI2178c+5g3LxuV3C0bUp6g3X9lyRij6IYpFgKQOjVSySOO2wU3NjpBDlwMr2soRRg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sgYAs-0001hG-51 for guix-patches@gnu.org; Tue, 20 Aug 2024 19:22:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72740] Add rootless-podman-service-type Resent-From: paul Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Aug 2024 23:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72740 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 72740@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17241961106493 (code B ref -1); Tue, 20 Aug 2024 23:22:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Aug 2024 23:21:50 +0000 Received: from localhost ([127.0.0.1]:33997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sgYAc-0001gM-MJ for submit@debbugs.gnu.org; Tue, 20 Aug 2024 19:21:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:33664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sgYAZ-0001g7-Va for submit@debbugs.gnu.org; Tue, 20 Aug 2024 19:21:44 -0400 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 1sgY9r-0003S7-T9 for guix-patches@gnu.org; Tue, 20 Aug 2024 19:20:59 -0400 Received: from confino.investici.org ([93.190.126.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sgY9p-0006Ik-5i for guix-patches@gnu.org; Tue, 20 Aug 2024 19:20:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1724196042; bh=AA4oWvXHVaw+NedFS4E4xBk09wLCddomeJw0BlV4SSU=; h=Date:To:From:Subject:From; b=dSKh+O2z0Ym+hHUHc70rTMb9OZjULJ3WXcgq9exW9oYfrqz3Qw6ji7GzdpLjzqqAp EdXrTvZq9tJOMcSV2QoAuPKN2Z1eBz5RC0LjClRu3e5vDrap+R4e+FBQ483+RJCHp7 FIxD387pIyZJamm5gZ0W1+/QczRgd7zlmDdb+h/g= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4WpQSB2b3tz10yg for ; Tue, 20 Aug 2024 23:20:42 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4WpQSB28bCz10yR for ; Tue, 20 Aug 2024 23:20:42 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------v1JVzU8lZJNC0ZgVNItyF6EJ" Message-ID: <1b3dc75d-fe89-6153-ccc7-222f829b2e14@autistici.org> Date: Wed, 21 Aug 2024 01:20:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Content-Language: en-US Received-SPF: pass client-ip=93.190.126.19; envelope-from=goodoldpaul@autistici.org; helo=confino.investici.org 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: paul X-ACL-Warn: , paul via Guix-patches From: paul via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: A9D681394A X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.77 X-Spam-Score: -5.77 X-TUID: Xlpy8MsSpapx This is a multi-part message in MIME format. --------------v1JVzU8lZJNC0ZgVNItyF6EJ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dear Guixers, I'm sending a patchset adding rootless Podman support to the Guix System. I'm currently using this on my systems as it's set up in my personal channel [0]. By adding the following to my own system config (use-modules (small-guix system accounts) (small-guix services containers)) (service iptables-service-type) (service rootless-podman-service-type          (rootless-podman-configuration           (subgids            (list (subid-range (name "alice"))))           (subuids            (list (subid-range (name "alice")))))) I'm able to run the following rootless Podman hello world $ podman run -it --rm docker.io/alpine cat /etc/*release* NAME="Alpine Linux" ID=alpine VERSION_ID=3.20.2 PRETTY_NAME="Alpine Linux v3.20" HOME_URL="https://alpinelinux.org/" BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues" and with guix shell podman compose I'm able to run this Podman compose hello world [1]: $ mkdir data $ echo hello world > data/index.html $ podman compose up -d ... exit code: 0 $ curl localhost:8080 hello world This patch depends on the subids-service-type from issue #72337 [2]. Please let me know your thoughts. Thank you for your work, giacomo [0]: https://gitlab.com/orang3/small-guix/-/blob/master/small-guix/services/containers.scm?ref_type=heads#L197 [1]: https://github.com/fishinthecalculator/rootless-podman-nginx-static-server [2]: https://issues.guix.gnu.org/72337 --------------v1JVzU8lZJNC0ZgVNItyF6EJ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Dear Guixers,

I'm sending a patchset adding rootless Podman support to the Guix System. I'm currently using this on my systems as it's set up in my personal channel [0]. By adding the following to my own system config

(use-modules (small-guix system accounts)
             (small-guix services containers))

(service iptables-service-type)
(service rootless-podman-service-type
         (rootless-podman-configuration
          (subgids
           (list (subid-range (name "alice"))))
          (subuids
           (list (subid-range (name "alice"))))))

I'm able to run the following rootless Podman hello world

$ podman run -it --rm docker.io/alpine cat /etc/*release*
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.20.2
PRETTY_NAME="Alpine Linux v3.20"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

and with guix shell podman compose I'm able to run this Podman compose hello world [1]:

$ mkdir data
$ echo hello world > data/index.html
$ podman compose up -d

...

exit code: 0
$ curl localhost:8080
hello world


This patch depends on the subids-service-type from issue #72337 [2]. Please let me know your thoughts.

Thank you for your work,

giacomo


[0]: https://gitlab.com/orang3/small-guix/-/blob/master/small-guix/services/containers.scm?ref_type=heads#L197
[1]: https://github.com/fishinthecalculator/rootless-podman-nginx-static-server
[2]: https://issues.guix.gnu.org/72337

--------------v1JVzU8lZJNC0ZgVNItyF6EJ--