Github messages for voidlinux
 help / color / mirror / Atom feed
From: lemmi <lemmi@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] podman: add runit service
Date: Mon, 21 Mar 2022 00:39:37 +0100	[thread overview]
Message-ID: <20220320233937.Dzrgmizeze-su1vRDJ5N3C3IySx2W8r3GTI-HU3tBo4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36102@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 547 bytes --]

There is an updated pull request by lemmi against master on the void-packages repository

https://github.com/lemmi/void-packages podman
https://github.com/void-linux/void-packages/pull/36102

podman: add runit service
[Upstream Systemd service](https://github.com/containers/podman/blob/v4.0.2/contrib/systemd/system/podman.service.in) doesn't do anything special. `--time=0 unix:///var/run/docker.sock` is required, since we don't have socket activation.

A patch file from https://github.com/void-linux/void-packages/pull/36102.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-podman-36102.patch --]
[-- Type: text/x-diff, Size: 2588 bytes --]

From 57606372d0cda4cf4c68b3a4a3c2465dde8e611b Mon Sep 17 00:00:00 2001
From: lemmi <lemmi@nerd2nerd.org>
Date: Fri, 11 Mar 2022 22:37:26 +0100
Subject: [PATCH] podman: add runit service

---
 srcpkgs/podman/files/podman-docker/finish | 3 +++
 srcpkgs/podman/files/podman-docker/run    | 4 ++++
 srcpkgs/podman/files/podman/log/run       | 1 +
 srcpkgs/podman/files/podman/run           | 4 ++++
 srcpkgs/podman/template                   | 4 +++-
 5 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100755 srcpkgs/podman/files/podman-docker/finish
 create mode 100755 srcpkgs/podman/files/podman-docker/run
 create mode 120000 srcpkgs/podman/files/podman/log/run
 create mode 100755 srcpkgs/podman/files/podman/run

diff --git a/srcpkgs/podman/files/podman-docker/finish b/srcpkgs/podman/files/podman-docker/finish
new file mode 100755
index 000000000000..884b37f53b63
--- /dev/null
+++ b/srcpkgs/podman/files/podman-docker/finish
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+[ "$(realpath /run/docker.sock)" = "/run/podman/podman.sock" ] && rm /run/docker.sock
diff --git a/srcpkgs/podman/files/podman-docker/run b/srcpkgs/podman/files/podman-docker/run
new file mode 100755
index 000000000000..3125a4f89ed9
--- /dev/null
+++ b/srcpkgs/podman/files/podman-docker/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+ln -sf /run/podman/podman.sock /run/docker.sock
+exec chpst -b podman-docker pause
diff --git a/srcpkgs/podman/files/podman/log/run b/srcpkgs/podman/files/podman/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/podman/files/podman/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/podman/files/podman/run b/srcpkgs/podman/files/podman/run
new file mode 100755
index 000000000000..8eb8f41752e4
--- /dev/null
+++ b/srcpkgs/podman/files/podman/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+[ -r ./conf ] && . ./conf
+exec podman --log-level info system service ${OPTS:---time=0} 2>&1
diff --git a/srcpkgs/podman/template b/srcpkgs/podman/template
index c719e4ca6057..95e0531abad8 100644
--- a/srcpkgs/podman/template
+++ b/srcpkgs/podman/template
@@ -1,7 +1,7 @@
 # Template file for 'podman'
 pkgname=podman
 version=4.0.2
-revision=2
+revision=3
 build_style=go
 go_import_path="github.com/containers/podman/v4"
 go_package="${go_import_path}/cmd/podman ${go_import_path}/cmd/rootlessport"
@@ -34,4 +34,6 @@ post_install() {
 		vendor/github.com/containers/common/pkg/config/containers.conf \
 		>containers.cgfs.conf
 	vinstall containers.cgfs.conf 644 usr/share/containers containers.conf
+	vsv podman
+	vsv podman-docker
 }

  parent reply	other threads:[~2022-03-20 23:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-11 21:43 [PR PATCH] " lemmi
2022-03-11 23:15 ` [PR REVIEW] " CameronNemo
2022-03-12 11:47 ` lemmi
2022-03-13  0:52 ` CameronNemo
2022-03-13  0:58 ` lemmi
2022-03-14 15:58 ` leahneukirchen
2022-03-16  3:58 ` the-maldridge
2022-03-16  4:14 ` lemmi
2022-03-16 14:38 ` leahneukirchen
2022-03-20 23:39 ` lemmi [this message]
2022-03-20 23:40 ` lemmi
2022-03-27 23:16 ` the-maldridge
2022-03-27 23:26 ` CameronNemo
2022-03-28  0:11 ` Duncaen
2022-03-28 14:36 ` [PR PATCH] [Merged]: " lemmi
2022-03-28 14:36 ` lemmi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220320233937.Dzrgmizeze-su1vRDJ5N3C3IySx2W8r3GTI-HU3tBo4@z \
    --to=lemmi@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).