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

25 lines
657 B
Docker
Raw Normal View History

2015-08-15 19:56:52 +02:00
#
# Dockerfile for influxdb
#
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
2016-01-22 04:40:23 +02:00
ENV INFLUXDB_VER 0.9.6.1
2015-12-04 13:58:55 +02:00
ENV INFLUXDB_FILE influxdb_${INFLUXDB_VER}_amd64.deb
ENV INFLUXDB_URL https://s3.amazonaws.com/influxdb/${INFLUXDB_FILE}
2015-08-15 19:56:52 +02:00
RUN apt-get update \
&& apt-get install -y wget \
2015-12-04 13:58:55 +02:00
&& wget ${INFLUXDB_URL} \
&& dpkg -i ${INFLUXDB_FILE} \
2015-12-04 14:14:43 +02:00
&& sed -i '/^reporting-disabled/s/false/true/' /etc/influxdb/influxdb.conf \
2015-08-15 19:56:52 +02:00
&& apt-get purge --auto-remove -y wget \
2015-12-04 13:58:55 +02:00
&& rm -rf ${INFLUXDB_FILE} \
2015-08-15 20:35:36 +02:00
/var/lib/apt/lists/*
2015-08-15 19:56:52 +02:00
2015-12-04 14:14:43 +02:00
VOLUME /var/lib/influxdb/
2015-08-15 19:56:52 +02:00
EXPOSE 8083 8086 8088
2015-12-04 14:14:43 +02:00
CMD ["influxd", "-config", "/etc/influxdb/influxdb.conf"]