How can I install ReductStore Grafana plugin without internet?

I’d like to test your Grafana plugin on my setup. I’ve found the installation instructions in the readme, but the plugin downloads during the first start and my setup may not have an internet connection. How can I provision it in a Docker image so that it can run offline?

1 Like

Hi @User1231 , it’s quite easy to do. You need to download the plugin in your Dockerfile and extract it to the /var/lib/grafana/plugins folder. This is the example:

FROM ubuntu:22.04 AS builder

ARG PLUGIN_VERSION=0.1.0

RUN apt-get update && apt-get install -y wget unzip
WORKDIR /var/lib/grafana/plugins

RUN wget -O reductstore-datasource.zip https://github.com/reductstore/reduct-grafana/releases/download/v${PLUGIN_VERSION}/reductstore-datasource-${PLUGIN_VERSION}.zip \
    && unzip reductstore-datasource.zip -d . \
    && rm reductstore-datasource.zip

FROM grafana/grafana-enterprise:12.2.0

COPY --from=builder /var/lib/grafana/plugins/reductstore-datasource /var/lib/grafana/plugins/reductstore-datasource
ENV GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=reductstore-datasource

Hope this helps