From 0c027f613039db54bc87fb6de63c0ffe253cabf2 Mon Sep 17 00:00:00 2001 From: unitexe Date: Mon, 23 Feb 2026 08:25:47 -0600 Subject: Introduce meta-unit-virtualization Primary motivation for this is removing observability containers from beaglebone black because of RAM limitations. Images can now include the observability containers by adding `observability` to `IMAGE_FEATURES`. --- .../recipes-containers/prometheus/prometheus.bb | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 meta-unit-virtualization/recipes-containers/prometheus/prometheus.bb (limited to 'meta-unit-virtualization/recipes-containers/prometheus/prometheus.bb') diff --git a/meta-unit-virtualization/recipes-containers/prometheus/prometheus.bb b/meta-unit-virtualization/recipes-containers/prometheus/prometheus.bb new file mode 100644 index 0000000..5eadf25 --- /dev/null +++ b/meta-unit-virtualization/recipes-containers/prometheus/prometheus.bb @@ -0,0 +1,27 @@ +SUMMARY = "Prometheus quadlet" +DESCRIPTION = "A quadlet for a prometheus container that runs rootless" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${UNPACKDIR}/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" + +SRC_URI = "\ + file://prometheus.container \ + file://LICENSE \ + file://prometheus.yml \ +" + +RDEPENDS:${PN}:append = " podman" +RDEPENDS:${PN}:append = " add-user-svc" + +S = "${UNPACKDIR}" + +ROOTLESS_USER_NAME ?= "svc" + +do_install() { + install -D -p -m 0644 ${UNPACKDIR}/prometheus.container ${D}/home/${ROOTLESS_USER_NAME}/.config/containers/systemd/prometheus.container + install -D -p -m 0644 ${UNPACKDIR}/prometheus.yml ${D}/home/${ROOTLESS_USER_NAME}/.config/containers/prometheus/prometheus.yml +} + +FILES:${PN} = "\ + /home/${ROOTLESS_USER_NAME}/.config/containers/systemd/prometheus.container \ + /home/${ROOTLESS_USER_NAME}/.config/containers/prometheus/prometheus.yml \ +" -- cgit v1.2.3