add grafana module
All checks were successful
build container icingaweb2 / build (push) Successful in 4m2s

This commit is contained in:
2025-02-01 14:59:43 +01:00
parent 4656400214
commit ea28005bc9
4 changed files with 29 additions and 6 deletions

View File

@@ -35,6 +35,17 @@ RUN ["bash", "-exo", "pipefail", "-c", "\
apt clean all ; \
rm -vrf /var/lib/apt/lists/* "]
## install module grafana
ARG MODULE_VERSION="3.0.0"
ARG ICINGAWEB_MODULEPATH="/usr/share/icingaweb2/modules"
ARG REPO_URL="https://github.com/NETWAYS/icingaweb2-module-grafana"
ARG TARGET_DIR="${ICINGAWEB_MODULEPATH}/grafana"
ARG URL="${REPO_URL}/archive/v${MODULE_VERSION}.tar.gz"
RUN ["bash", "-exo", "pipefail", "-c", "\
install -d -m 0755 ${TARGET_DIR} ; \
wget -q -O - $URL | tar xfz - -C ${TARGET_DIR} --strip-components 1 ; \
"]
## create persistend data store
RUN ["bash", "-exo", "pipefail", "-c", "\
mkdir -p /data ; \