1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:34 +02:00
dockerfiles/grafana/arm/Dockerfile
2016-06-01 16:11:09 +08:00

38 lines
1.1 KiB
Docker

#
# Dockerfile for grafana-arm
#
FROM resin/rpi-raspbian:jessie
MAINTAINER kev <noreply@easypi.info>
ENV GRAFANA_VERSION=3.0.4-1464202710
ENV GRAFANA_FILE=grafana_${GRAFANA_VERSION}_armhf.deb
ENV GRAFANA_URL=https://github.com/vimagick/rpi-bin/raw/master/deb/${GRAFANA_FILE}
RUN set -xe \
&& apt-get update \
&& apt-get install -y ca-certificates \
libfontconfig \
wget \
&& wget ${GRAFANA_URL} \
&& dpkg -i ${GRAFANA_FILE} \
&& apt-get purge --auto-remove -y wget \
&& rm -rf ${GRAFANA_FILE} \
/var/lib/apt/lists/*
ENV GF_PATHS_DATA=/var/lib/grafana
ENV GF_PATHS_LOGS=/var/log/grafana
ENV GF_PATHS_PLUGINS=/var/lib/grafana/plugins
VOLUME /etc/grafana \
$GF_PATHS_DATA \
$GF_PATHS_LOGS
EXPOSE 3000
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" \
cfg:default.paths.plugins="$GF_PATHS_PLUGINS"