Use the debian package of grafana

master
meskio 1 year ago
parent 128997ed5d
commit ce43025693
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 34
      Dockerfile
  2. BIN
      gpg.key
  3. 1
      sha256sum

@ -1,25 +1,19 @@
FROM debian:buster-slim as builder
FROM registry.sindominio.net/debian
RUN apt-get -qy update && apt-get -qy upgrade && apt-get -qy install software-properties-common wget gnupg coreutils
RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN wget -q -O - https://packages.grafana.com/gpg.key | apt-key add -
COPY gpg.key /etc/apt/trusted.gpg.d/grafana.gpg
RUN echo "deb https://packages.grafana.com/enterprise/deb stable main" | tee -a /etc/apt/sources.list.d/grafana.list
RUN echo "deb https://packages.grafana.com/oss/deb stable main" > /etc/apt/sources.list.d/grafana.list && \
apt-get update && \
apt-get install -y --no-install-recommends grafana && \
apt-get clean && rm -rf /var/lib/apt/lists/*
#RUN apt-get update && apt-get -qy install grafana-enterprise
#WORKDIR grafana
WORKDIR "/usr/share/grafana"
VOLUME ["/usr/share/grafana/data"]
EXPOSE 3000
RUN wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.1.4.linux-amd64.tar.gz
COPY sha256sum .
RUN sha256sum -c sha256sum
RUN tar -zxvf grafana-enterprise-8.1.4.linux-amd64.tar.gz
RUN mv grafana-8.1.4 grafana
#RUN wget https://dl.grafana.com/oss/release/grafana-7.5.1.linux-amd64.tar.gz
#RUN tar -zxvf grafana-7.5.1.linux-amd64.tar.gz
#RUN mv grafana-7.5.1 grafana
WORKDIR grafana
CMD ./bin/grafana-server web
#CMD grafana-server web --homepath /var/lib/grafana --config /etc/grafana
ENTRYPOINT ["/usr/sbin/grafana-server"]
CMD ["web"]

Binary file not shown.

@ -1 +0,0 @@
1450322f16b30b5f8b1b41d16619ee5301919e85e7e6909f161b2fdd754c0ca3 grafana-enterprise-8.1.4.linux-amd64.tar.gz
Loading…
Cancel
Save