2015-08-15 20:35:36 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for grafana
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM debian:jessie
|
2016-05-01 03:06:20 +02:00
|
|
|
MAINTAINER kev <noreply@easypi.info>
|
2015-08-15 20:35:36 +02:00
|
|
|
|
2016-07-18 14:23:10 +02:00
|
|
|
ENV GRAFANA_VERSION=3.1.0-1468321182
|
2016-03-26 02:34:17 +02:00
|
|
|
ENV GRAFANA_FILE=grafana_${GRAFANA_VERSION}_amd64.deb
|
|
|
|
ENV GRAFANA_URL=https://grafanarel.s3.amazonaws.com/builds/${GRAFANA_FILE}
|
2015-12-04 14:04:12 +02:00
|
|
|
|
2016-03-26 01:29:17 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& apt-get update \
|
2016-05-11 13:39:56 +02:00
|
|
|
&& apt-get install -y ca-certificates \
|
|
|
|
libfontconfig \
|
|
|
|
wget \
|
2015-12-04 14:04:12 +02:00
|
|
|
&& wget ${GRAFANA_URL} \
|
|
|
|
&& dpkg -i ${GRAFANA_FILE} \
|
2015-08-15 20:35:36 +02:00
|
|
|
&& apt-get purge --auto-remove -y wget \
|
2015-12-04 14:04:12 +02:00
|
|
|
&& rm -rf ${GRAFANA_FILE} \
|
2015-08-15 20:35:36 +02:00
|
|
|
/var/lib/apt/lists/*
|
|
|
|
|
2016-03-26 02:34:17 +02:00
|
|
|
ENV GF_PATHS_DATA=/var/lib/grafana
|
|
|
|
ENV GF_PATHS_LOGS=/var/log/grafana
|
2016-06-01 10:11:09 +02:00
|
|
|
ENV GF_PATHS_PLUGINS=/var/lib/grafana/plugins
|
2015-08-15 20:35:36 +02:00
|
|
|
|
2016-03-26 01:29:17 +02:00
|
|
|
VOLUME /etc/grafana \
|
|
|
|
$GF_PATHS_DATA \
|
|
|
|
$GF_PATHS_LOGS
|
2015-08-15 20:35:36 +02:00
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
2016-03-26 01:29:17 +02:00
|
|
|
CMD grafana-server --homepath=/usr/share/grafana \
|
|
|
|
--config=/etc/grafana/grafana.ini \
|
|
|
|
cfg:default.paths.data="$GF_PATHS_DATA" \
|
2016-06-01 10:11:09 +02:00
|
|
|
cfg:default.paths.logs="$GF_PATHS_LOGS" \
|
|
|
|
cfg:default.paths.plugins="$GF_PATHS_PLUGINS"
|