mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-20 04:59:25 +02:00
update influxdb
This commit is contained in:
parent
00d28d1146
commit
62ef80eb37
@ -4,5 +4,5 @@ grafana:
|
|||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
environment:
|
environment:
|
||||||
- GF_SECURITY_ADMIN_USER=admin
|
- GF_SECURITY_ADMIN_USER=admin
|
||||||
- GF_SECURITY_ADMIN_PASSWORD=ag2Ahth2u
|
- GF_SECURITY_ADMIN_PASSWORD=admin
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -9,6 +9,7 @@ ENV INFLUXDB_VERSION=0.11.0
|
|||||||
ENV INFLUXDB_FILE=influxdb_${INFLUXDB_VERSION}-1_amd64.deb
|
ENV INFLUXDB_FILE=influxdb_${INFLUXDB_VERSION}-1_amd64.deb
|
||||||
ENV INFLUXDB_MD5=917148cda9d88aad384475c236aaf81e
|
ENV INFLUXDB_MD5=917148cda9d88aad384475c236aaf81e
|
||||||
ENV INFLUXDB_URL=https://s3.amazonaws.com/influxdb/${INFLUXDB_FILE}
|
ENV INFLUXDB_URL=https://s3.amazonaws.com/influxdb/${INFLUXDB_FILE}
|
||||||
|
ENV COLLECTD_URL=https://github.com/collectd/collectd/raw/master/src/types.db
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
@ -17,11 +18,12 @@ RUN set -xe \
|
|||||||
&& echo "${INFLUXDB_MD5} ${INFLUXDB_FILE}" | md5sum -c \
|
&& echo "${INFLUXDB_MD5} ${INFLUXDB_FILE}" | md5sum -c \
|
||||||
&& dpkg -i ${INFLUXDB_FILE} \
|
&& dpkg -i ${INFLUXDB_FILE} \
|
||||||
&& sed -i '/^reporting-disabled/s/false/true/' /etc/influxdb/influxdb.conf \
|
&& sed -i '/^reporting-disabled/s/false/true/' /etc/influxdb/influxdb.conf \
|
||||||
|
&& wget ${COLLECTD_URL} -O /usr/lib/influxdb/types.db \
|
||||||
&& apt-get purge --auto-remove -y wget \
|
&& apt-get purge --auto-remove -y wget \
|
||||||
&& rm -rf ${INFLUXDB_FILE} \
|
&& rm -rf ${INFLUXDB_FILE} \
|
||||||
/var/lib/apt/lists/*
|
/var/lib/apt/lists/*
|
||||||
|
|
||||||
VOLUME /var/lib/influxdb/
|
VOLUME /etc/influxdb /var/lib/influxdb
|
||||||
EXPOSE 8083 8086 8088
|
EXPOSE 8083 8086 8088
|
||||||
|
|
||||||
CMD ["influxd", "-config", "/etc/influxdb/influxdb.conf"]
|
CMD ["influxd", "-config", "/etc/influxdb/influxdb.conf"]
|
||||||
|
@ -4,4 +4,5 @@ influxdb:
|
|||||||
- "8083:8083"
|
- "8083:8083"
|
||||||
- "8086:8086"
|
- "8086:8086"
|
||||||
- "8088:8088"
|
- "8088:8088"
|
||||||
|
- "25826:25826/udp"
|
||||||
restart: always
|
restart: always
|
||||||
|
Loading…
x
Reference in New Issue
Block a user