summaryrefslogtreecommitdiff
path: root/opt/containers-common
diff options
context:
space:
mode:
Diffstat (limited to 'opt/containers-common')
-rw-r--r--opt/containers-common/.footprint6
-rw-r--r--opt/containers-common/.signature5
-rw-r--r--opt/containers-common/MAKEPKG74
3 files changed, 85 insertions, 0 deletions
diff --git a/opt/containers-common/.footprint b/opt/containers-common/.footprint
new file mode 100644
index 0000000..4f628f0
--- /dev/null
+++ b/opt/containers-common/.footprint
@@ -0,0 +1,6 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/containers/
+-rw-r--r-- root/root etc/containers/containers.conf
+-rw-r--r-- root/root etc/containers/policy.json
+-rw-r--r-- root/root etc/containers/registries.conf
+-rw-r--r-- root/root etc/containers/storage.conf
diff --git a/opt/containers-common/.signature b/opt/containers-common/.signature
new file mode 100644
index 0000000..47423c9
--- /dev/null
+++ b/opt/containers-common/.signature
@@ -0,0 +1,5 @@
+RWTZ9IduCSQ/mOeIcyun0nngoElQgTGpBR53jLHZz4QBDLNF/6bWff0AMEFGwmEnQ+txZRVW73DyxjCYjnPqnFoJ5DkSGj775wY=
+
+SHA256 (MAKEPKG) = 3b90a88cafb1d56f9e92a2c62e4ce02890115bcfdda93293b3146b4402ad8951
+SHA256 (.footprint) = 33192b07addc43b39c32b63003f8b009b2a69a7445e5c117b661cd256da1bd6c
+SHA256 (containers-common#1.0-1.pkg.tar.gz) = fbbaca931e6b7c239679d436d7160d69db9245388ae826a07096fbe6546b27eb
diff --git a/opt/containers-common/MAKEPKG b/opt/containers-common/MAKEPKG
new file mode 100644
index 0000000..a45ddb3
--- /dev/null
+++ b/opt/containers-common/MAKEPKG
@@ -0,0 +1,74 @@
+#!/bin/mkpkg
+# *** Flux Linux ***
+# description: Configuration files for container tools
+# url: https://github.com/containers/common
+
+name=containers-common
+version=1.0
+release=1
+depends=()
+source=()
+
+sha256sums=(
+)
+
+build() {
+ install -d $PKG/etc/containers
+
+ # registries.conf
+ printf '%s\n' \
+ 'unqualified-search-registries = ["docker.io"]' \
+ '' \
+ '[[registry]]' \
+ 'prefix = "docker.io"' \
+ 'location = "docker.io"' \
+ > $PKG/etc/containers/registries.conf
+
+ # storage.conf
+ printf '%s\n' \
+ '[storage]' \
+ 'driver = "overlay"' \
+ 'runroot = "/run/containers/storage"' \
+ 'graphroot = "/var/lib/containers/storage"' \
+ '' \
+ '[storage.options.overlay]' \
+ 'mountopt = "nodev,metacopy=off"' \
+ > $PKG/etc/containers/storage.conf
+
+ # policy.json
+ printf '%s\n' \
+ '{' \
+ ' "default": [' \
+ ' { "type": "insecureAcceptAnything" }' \
+ ' ],' \
+ ' "transports": {' \
+ ' "docker-daemon": {' \
+ ' "": [{ "type": "insecureAcceptAnything" }]' \
+ ' }' \
+ ' }' \
+ '}' \
+ > $PKG/etc/containers/policy.json
+
+ # containers.conf - tuned for musl/runit/no-systemd
+ printf '%s\n' \
+ '[containers]' \
+ 'init_path = "/usr/libexec/podman/catatonit"' \
+ '' \
+ '[engine]' \
+ 'runtime = "crun"' \
+ 'cgroup_manager = "cgroupfs"' \
+ 'events_logger = "file"' \
+ 'helper_binaries_dir = ["/usr/libexec/podman"]' \
+ '' \
+ '[network]' \
+ 'network_backend = "netavark"' \
+ 'default_rootless_network_cmd = "pasta"' \
+ > $PKG/etc/containers/containers.conf
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh