diff options
| author | unitexe <unitexe70@gmail.com> | 2026-02-23 08:25:47 -0600 |
|---|---|---|
| committer | unitexe <unitexe70@gmail.com> | 2026-03-02 22:51:24 -0600 |
| commit | 0c027f613039db54bc87fb6de63c0ffe253cabf2 (patch) | |
| tree | d636b1e73bf82f0f25528c0d1c9887bd31b5506b /meta-unit-virtualization/recipes-containers/prometheus/prometheus.bb | |
| parent | 69509e438d1417d25d646ff1a3ba88e27e4ed282 (diff) | |
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`.
Diffstat (limited to 'meta-unit-virtualization/recipes-containers/prometheus/prometheus.bb')
| -rw-r--r-- | meta-unit-virtualization/recipes-containers/prometheus/prometheus.bb | 27 |
1 files changed, 27 insertions, 0 deletions
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 \ +" |
