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

28 lines
815 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-03-26 02:34:17 +02:00
ENV INFLUXDB_VERSION=0.11.0
ENV INFLUXDB_FILE=influxdb_${INFLUXDB_VERSION}-1_amd64.deb
ENV INFLUXDB_MD5=917148cda9d88aad384475c236aaf81e
ENV INFLUXDB_URL=https://s3.amazonaws.com/influxdb/${INFLUXDB_FILE}
2015-12-04 13:58:55 +02:00
2016-03-26 02:34:17 +02:00
RUN set -xe \
&& apt-get update \
2015-08-15 19:56:52 +02:00
&& apt-get install -y 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 \
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"]