1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
dockerfiles/influxdb/Dockerfile

30 lines
964 B
Docker
Raw Normal View History

2015-08-15 17:56:52 +00:00
#
# Dockerfile for influxdb
#
FROM debian:jessie
2016-05-01 01:06:20 +00:00
MAINTAINER kev <noreply@easypi.info>
2015-08-15 17:56:52 +00:00
2016-04-08 17:29:19 +00:00
ENV INFLUXDB_VERSION=0.12.0
2016-03-26 00:34:17 +00:00
ENV INFLUXDB_FILE=influxdb_${INFLUXDB_VERSION}-1_amd64.deb
2016-04-08 17:29:19 +00:00
ENV INFLUXDB_MD5=f3aab090f6674d1dc6dc620a0499d36a
2016-03-26 00:34:17 +00:00
ENV INFLUXDB_URL=https://s3.amazonaws.com/influxdb/${INFLUXDB_FILE}
2016-03-26 07:46:59 +00:00
ENV COLLECTD_URL=https://github.com/collectd/collectd/raw/master/src/types.db
2015-12-04 11:58:55 +00:00
2016-03-26 00:34:17 +00:00
RUN set -xe \
&& apt-get update \
2015-08-15 17:56:52 +00:00
&& apt-get install -y wget \
2016-03-26 00:34:17 +00:00
&& wget ${INFLUXDB_URL} -O ${INFLUXDB_FILE} \
&& echo "${INFLUXDB_MD5} ${INFLUXDB_FILE}" | md5sum -c \
2015-12-04 11:58:55 +00:00
&& dpkg -i ${INFLUXDB_FILE} \
2015-12-04 12:14:43 +00:00
&& sed -i '/^reporting-disabled/s/false/true/' /etc/influxdb/influxdb.conf \
2016-03-26 07:46:59 +00:00
&& wget ${COLLECTD_URL} -O /usr/lib/influxdb/types.db \
2015-08-15 17:56:52 +00:00
&& apt-get purge --auto-remove -y wget \
2015-12-04 11:58:55 +00:00
&& rm -rf ${INFLUXDB_FILE} \
2015-08-15 18:35:36 +00:00
/var/lib/apt/lists/*
2015-08-15 17:56:52 +00:00
2016-03-26 07:46:59 +00:00
VOLUME /etc/influxdb /var/lib/influxdb
2015-08-15 17:56:52 +00:00
EXPOSE 8083 8086 8088
2015-12-04 12:14:43 +00:00
CMD ["influxd", "-config", "/etc/influxdb/influxdb.conf"]