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

30 lines
986 B
Docker
Raw Normal View History

2015-08-15 19:56:52 +02:00
#
# Dockerfile for influxdb
#
FROM debian:jessie
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2015-08-15 19:56:52 +02:00
ENV INFLUXDB_VERSION=1.0.0
2016-06-01 08:00:08 +02:00
ENV INFLUXDB_FILE=influxdb_${INFLUXDB_VERSION}_amd64.deb
ENV INFLUXDB_MD5=a25daf049d2482166b248fe2d0be4b69
2016-06-01 08:00:08 +02:00
ENV INFLUXDB_URL=https://dl.influxdata.com/influxdb/releases/${INFLUXDB_FILE}
2016-03-26 09:46:59 +02:00
ENV COLLECTD_URL=https://github.com/collectd/collectd/raw/master/src/types.db
2015-12-04 13:58:55 +02:00
2016-03-26 02:34:17 +02:00
RUN set -xe \
&& apt-get update \
2016-06-01 08:20:35 +02:00
&& apt-get install -y ca-certificates wget \
2016-03-26 02:34:17 +02:00
&& wget ${INFLUXDB_URL} -O ${INFLUXDB_FILE} \
&& echo "${INFLUXDB_MD5} ${INFLUXDB_FILE}" | md5sum -c \
2015-12-04 13:58:55 +02:00
&& dpkg -i ${INFLUXDB_FILE} \
2015-12-04 14:14:43 +02:00
&& sed -i '/^reporting-disabled/s/false/true/' /etc/influxdb/influxdb.conf \
2016-03-26 09:46:59 +02:00
&& wget ${COLLECTD_URL} -O /usr/lib/influxdb/types.db \
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
2016-03-26 09:46:59 +02:00
VOLUME /etc/influxdb /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"]