add grafana module
All checks were successful
build container icingaweb2 / build (push) Successful in 4m2s
All checks were successful
build container icingaweb2 / build (push) Successful in 4m2s
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -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 ; \
|
||||
|
||||
Reference in New Issue
Block a user