diff options
author | Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com> | 2024-10-01 13:49:20 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-10-02 19:54:53 -0700 |
commit | 5ac897fae9b09ff607ee37a1b0e0cee08988a83b (patch) | |
tree | b9b5253e2688d2bc8fbf5c4b3b42de221b7d9c3b /meta-webserver | |
parent | 1b3738d85c7a1a8035912cf8c88c8b0aa08f8bc1 (diff) | |
download | meta-openembedded-5ac897fae9b09ff607ee37a1b0e0cee08988a83b.tar.gz |
netdata: add docker PACKAGECONFIG
Some netdata plugins like cgroups or docker require permissions to
access the docker socket in order to label data properly.
Signed-off-by: Enguerrand de Ribaucourt <enguerrand.de-ribaucourt@savoirfairelinux.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-webserver')
-rw-r--r-- | meta-webserver/recipes-webadmin/netdata/netdata_1.47.1.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-webserver/recipes-webadmin/netdata/netdata_1.47.1.bb b/meta-webserver/recipes-webadmin/netdata/netdata_1.47.1.bb index 5b38d401c..413861459 100644 --- a/meta-webserver/recipes-webadmin/netdata/netdata_1.47.1.bb +++ b/meta-webserver/recipes-webadmin/netdata/netdata_1.47.1.bb | |||
@@ -41,7 +41,8 @@ SYSTEMD_AUTO_ENABLE:${PN} = "enable" | |||
41 | 41 | ||
42 | #User specific | 42 | #User specific |
43 | USERADD_PACKAGES = "${PN}" | 43 | USERADD_PACKAGES = "${PN}" |
44 | USERADD_PARAM:${PN} = "--system --no-create-home --home-dir ${localstatedir}/run/netdata --user-group netdata" | 44 | USERADD_PARAM:${PN} = "--system --no-create-home --home-dir ${localstatedir}/run/netdata \ |
45 | ${@bb.utils.contains('PACKAGECONFIG','docker','--groups docker','',d)} --user-group netdata" | ||
45 | 46 | ||
46 | PACKAGECONFIG ??= "openssl freeipmi ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | 47 | PACKAGECONFIG ??= "openssl freeipmi ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
47 | PACKAGECONFIG[brotli] = ",,brotli" | 48 | PACKAGECONFIG[brotli] = ",,brotli" |
@@ -53,6 +54,7 @@ PACKAGECONFIG[nfacct] = "-DENABLE_PLUGIN_NFACCT=ON,-DENABLE_PLUGIN_NFACCT=OFF,li | |||
53 | PACKAGECONFIG[xenstat] = "-DENABLE_PLUGIN_XENSTAT=ON,-DENABLE_PLUGIN_XENSTAT=OFF,xen-tools" | 54 | PACKAGECONFIG[xenstat] = "-DENABLE_PLUGIN_XENSTAT=ON,-DENABLE_PLUGIN_XENSTAT=OFF,xen-tools" |
54 | PACKAGECONFIG[cups] = "-DENABLE_PLUGIN_CUPS=ON,-DENABLE_PLUGIN_CUPS=OFF,cups" | 55 | PACKAGECONFIG[cups] = "-DENABLE_PLUGIN_CUPS=ON,-DENABLE_PLUGIN_CUPS=OFF,cups" |
55 | PACKAGECONFIG[systemd] = "-DENABLE_PLUGIN_SYSTEMD_JOURNAL=ON,-DENABLE_PLUGIN_SYSTEMD_JOURNAL=OFF,systemd" | 56 | PACKAGECONFIG[systemd] = "-DENABLE_PLUGIN_SYSTEMD_JOURNAL=ON,-DENABLE_PLUGIN_SYSTEMD_JOURNAL=OFF,systemd" |
57 | PACKAGECONFIG[docker] = ",,virtual/docker," | ||
56 | 58 | ||
57 | # ebpf doesn't compile (or detect) the cross compilation well | 59 | # ebpf doesn't compile (or detect) the cross compilation well |
58 | EXTRA_OECMAKE += "-DENABLE_PLUGIN_EBPF=OFF -DENABLE_PLUGIN_GO=OFF \ | 60 | EXTRA_OECMAKE += "-DENABLE_PLUGIN_EBPF=OFF -DENABLE_PLUGIN_GO=OFF \ |