1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00
dockerfiles/grafana/Dockerfile

36 lines
965 B
Docker
Raw Normal View History

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-06-01 07:00:49 +02:00
ENV GRAFANA_VERSION=3.0.4-1464167696
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
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" \
cfg:default.paths.logs="$GF_PATHS_LOGS"