mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-09 13:47:10 +02:00
add grafana
This commit is contained in:
parent
299dba4474
commit
e536b71c0a
26
grafana/Dockerfile
Normal file
26
grafana/Dockerfile
Normal 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
5
grafana/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
grafana
|
||||||
|
=======
|
||||||
|
|
||||||
|
`Grafana` is a leading open source application for visualizing large-scale
|
||||||
|
measurement data.
|
@ -10,10 +10,11 @@ RUN apt-get update \
|
|||||||
&& wget https://s3.amazonaws.com/influxdb/influxdb_0.9.2_amd64.deb \
|
&& wget https://s3.amazonaws.com/influxdb/influxdb_0.9.2_amd64.deb \
|
||||||
&& dpkg -i 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 \
|
&& 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 \
|
&& 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
|
EXPOSE 8083 8086 8088
|
||||||
|
|
||||||
CMD ["/opt/influxdb/influxd", "-config", "/etc/opt/influxdb/influxdb.conf"]
|
CMD ["/opt/influxdb/influxd", "-config", "/etc/opt/influxdb/influxdb.conf"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user