aboutsummaryrefslogtreecommitdiff
path: root/rc.zot/zot-srv
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-11-16 04:59:50 +0100
committerEugen Wissner <belka@caraus.de>2026-11-16 04:59:50 +0100
commit7af33bd4079b1ccea362d6e32729d7ba3ea0df99 (patch)
tree9641dee6ecb3c3d8dc5dada18794b390ce271214 /rc.zot/zot-srv
parent1ea2bc9b308b8c05ab09ef463f638f993e747f39 (diff)
downloads6-7af33bd4079b1ccea362d6e32729d7ba3ea0df99.tar.gz
Add rc.zot registry service
Diffstat (limited to 'rc.zot/zot-srv')
-rw-r--r--rc.zot/zot-srv/dependencies5
-rw-r--r--rc.zot/zot-srv/env/CMD1
-rw-r--r--rc.zot/zot-srv/env/CMD_OPTS1
-rw-r--r--rc.zot/zot-srv/producer-for1
-rw-r--r--rc.zot/zot-srv/run14
-rw-r--r--rc.zot/zot-srv/type1
6 files changed, 23 insertions, 0 deletions
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