From 7af33bd4079b1ccea362d6e32729d7ba3ea0df99 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 16 Nov 2026 04:59:50 +0100 Subject: Add rc.zot registry service --- rc.zot/zot-srv/dependencies | 5 +++++ rc.zot/zot-srv/env/CMD | 1 + rc.zot/zot-srv/env/CMD_OPTS | 1 + rc.zot/zot-srv/producer-for | 1 + rc.zot/zot-srv/run | 14 ++++++++++++++ rc.zot/zot-srv/type | 1 + 6 files changed, 23 insertions(+) create mode 100644 rc.zot/zot-srv/dependencies create mode 100644 rc.zot/zot-srv/env/CMD create mode 100644 rc.zot/zot-srv/env/CMD_OPTS create mode 100644 rc.zot/zot-srv/producer-for create mode 100644 rc.zot/zot-srv/run create mode 100644 rc.zot/zot-srv/type (limited to 'rc.zot/zot-srv') diff --git a/rc.zot/zot-srv/dependencies b/rc.zot/zot-srv/dependencies new file mode 100644 index 0000000..a262a61 --- /dev/null +++ b/rc.zot/zot-srv/dependencies @@ -0,0 +1,5 @@ +tmpfs-run +# Comment out "remount-root" and uncomment "local-fs" +# if you use separate partition for /var +remount-root +#local-fs diff --git a/rc.zot/zot-srv/env/CMD b/rc.zot/zot-srv/env/CMD new file mode 100644 index 0000000..2652f8a --- /dev/null +++ b/rc.zot/zot-srv/env/CMD @@ -0,0 +1 @@ +/usr/bin/zot diff --git a/rc.zot/zot-srv/env/CMD_OPTS b/rc.zot/zot-srv/env/CMD_OPTS new file mode 100644 index 0000000..30ec6d0 --- /dev/null +++ b/rc.zot/zot-srv/env/CMD_OPTS @@ -0,0 +1 @@ +serve /etc/zot/config.yaml diff --git a/rc.zot/zot-srv/producer-for b/rc.zot/zot-srv/producer-for new file mode 100644 index 0000000..3a1c37e --- /dev/null +++ b/rc.zot/zot-srv/producer-for @@ -0,0 +1 @@ +zot-log diff --git a/rc.zot/zot-srv/run b/rc.zot/zot-srv/run new file mode 100644 index 0000000..44c40c7 --- /dev/null +++ b/rc.zot/zot-srv/run @@ -0,0 +1,14 @@ +#!/bin/execlineb -P + +###################### +# Start zot registry # +###################### + +fdmove -c 2 1 +s6-setuidgid zot +s6-envdir env +multisubstitute { + importas -iu CMD CMD + importas -usCd" " CMD_OPTS CMD_OPTS +} +exec -c $CMD $CMD_OPTS diff --git a/rc.zot/zot-srv/type b/rc.zot/zot-srv/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/rc.zot/zot-srv/type @@ -0,0 +1 @@ +longrun -- cgit v1.2.3