Docker: Fix renderer plugin in custom Dockerfile (#88223)

* Docker: fix renderer plugin in custom Dockerfile

* Update Dockerfile
This commit is contained in:
Agnès Toulet 2024-05-30 10:27:26 +02:00 committed by GitHub
parent 5bb7d4da4c
commit d12c808279
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,10 +32,17 @@ RUN mkdir -p "$GF_PATHS_PLUGINS" && \
USER grafana
RUN if [ $GF_INSTALL_IMAGE_RENDERER_PLUGIN = "true" ]; then \
grafana-cli \
--pluginsDir "$GF_PATHS_PLUGINS" \
--pluginUrl https://github.com/grafana/grafana-image-renderer/releases/latest/download/plugin-linux-x64-glibc-no-chromium.zip \
plugins install grafana-image-renderer; \
if grep -i -q alpine /etc/issue; then \
grafana-cli \
--pluginsDir "$GF_PATHS_PLUGINS" \
--pluginUrl https://github.com/grafana/grafana-image-renderer/releases/latest/download/plugin-alpine-x64-no-chromium.zip \
plugins install grafana-image-renderer; \
else \
grafana-cli \
--pluginsDir "$GF_PATHS_PLUGINS" \
--pluginUrl https://github.com/grafana/grafana-image-renderer/releases/latest/download/plugin-linux-x64-glibc-no-chromium.zip \
plugins install grafana-image-renderer; \
fi \
fi
ARG GF_INSTALL_PLUGINS=""