1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

add grafana

This commit is contained in:
kev 2015-08-16 02:35:36 +08:00
parent 299dba4474
commit e536b71c0a
3 changed files with 34 additions and 2 deletions

26
grafana/Dockerfile Normal file
View File

@ -0,0 +1,26 @@
#
# Dockerfile for grafana
#
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
RUN apt-get update \
&& apt-get install -y libfontconfig wget \
&& wget https://grafanarel.s3.amazonaws.com/builds/grafana_2.1.1_amd64.deb \
&& dpkg -i grafana_2.1.1_amd64.deb \
&& apt-get purge --auto-remove -y wget \
&& rm -rf grafana_2.1.1_amd64.deb \
/var/lib/apt/lists/*
ENV GRAFANA_HOME=/usr/share/grafana
ENV CONF_FILE=/etc/grafana/grafana.ini
ENV DATA_DIR=/var/lib/grafana
ENV LOG_DIR=/var/log/grafana
WORKDIR $GRAFANA_HOME
VOLUME $DATA_DIR $LOG_DIR
EXPOSE 3000
CMD grafana-server --config=$CONF_FILE cfg:default.paths.data=$DATA_DIR cfg:default.paths.logs=$LOG_DIR

5
grafana/README.md Normal file
View File

@ -0,0 +1,5 @@
grafana
=======
`Grafana` is a leading open source application for visualizing large-scale
measurement data.

View File

@ -10,10 +10,11 @@ RUN apt-get update \
&& wget https://s3.amazonaws.com/influxdb/influxdb_0.9.2_amd64.deb \
&& dpkg -i influxdb_0.9.2_amd64.deb \
&& sed -i '/^reporting-disabled/s/false/true/' /etc/opt/influxdb/influxdb.conf \
&& rm influxdb_0.9.2_amd64.deb \
&& apt-get purge --auto-remove -y wget \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf influxdb_0.9.2_amd64.deb \
/var/lib/apt/lists/*
VOLUME /var/opt/influxdb/
EXPOSE 8083 8086 8088
CMD ["/opt/influxdb/influxd", "-config", "/etc/opt/influxdb/influxdb.conf"]