1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-24 05:17:06 +02:00
dockerfiles/influxdb/Dockerfile

30 lines
986 B
Docker
Raw Normal View History

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