1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/grafana/Dockerfile

38 lines
1.1 KiB
Docker
Raw Normal View History

2015-08-15 20:35:36 +02:00
#
# Dockerfile for grafana
#
FROM debian:jessie
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2015-08-15 20:35:36 +02:00
2016-12-07 03:03:31 +02:00
ENV GRAFANA_VERSION=4.0.1-1480694114
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"