mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-03 13:21:49 +02:00
add influxdb-arm
This commit is contained in:
parent
218bdbd18a
commit
a31442a185
@ -6,9 +6,9 @@ FROM debian:jessie
|
||||
MAINTAINER kev <noreply@easypi.info>
|
||||
|
||||
ENV INFLUXDB_VERSION=0.13.0
|
||||
ENV INFLUXDB_FILE=influxdb_${INFLUXDB_VERSION}-1_amd64.deb
|
||||
ENV INFLUXDB_FILE=influxdb_${INFLUXDB_VERSION}_amd64.deb
|
||||
ENV INFLUXDB_MD5=4f0aa76fee22cf4c18e2a0779ba4f462
|
||||
ENV INFLUXDB_URL=https://s3.amazonaws.com/influxdb/${INFLUXDB_FILE}
|
||||
ENV INFLUXDB_URL=https://dl.influxdata.com/influxdb/releases/${INFLUXDB_FILE}
|
||||
ENV COLLECTD_URL=https://github.com/collectd/collectd/raw/master/src/types.db
|
||||
|
||||
RUN set -xe \
|
||||
|
29
influxdb/arm/Dockerfile
Normal file
29
influxdb/arm/Dockerfile
Normal file
@ -0,0 +1,29 @@
|
||||
#
|
||||
# Dockerfile for influxdb-arm
|
||||
#
|
||||
|
||||
FROM resin/rpi-raspbian:jessie
|
||||
MAINTAINER kev <noreply@easypi.info>
|
||||
|
||||
ENV INFLUXDB_VERSION=0.13.0
|
||||
ENV INFLUXDB_FILE=influxdb_${INFLUXDB_VERSION}_armhf.deb
|
||||
ENV INFLUXDB_MD5=bcca4c91bbd8e7f60e4a8325be67a08a
|
||||
ENV INFLUXDB_URL=https://dl.influxdata.com/influxdb/releases/${INFLUXDB_FILE}
|
||||
ENV COLLECTD_URL=https://github.com/collectd/collectd/raw/master/src/types.db
|
||||
|
||||
RUN set -xe \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y wget \
|
||||
&& wget ${INFLUXDB_URL} -O ${INFLUXDB_FILE} \
|
||||
&& echo "${INFLUXDB_MD5} ${INFLUXDB_FILE}" | md5sum -c \
|
||||
&& dpkg -i ${INFLUXDB_FILE} \
|
||||
&& 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 \
|
||||
&& rm -rf ${INFLUXDB_FILE} \
|
||||
/var/lib/apt/lists/*
|
||||
|
||||
VOLUME /etc/influxdb /var/lib/influxdb
|
||||
EXPOSE 8083 8086 8088
|
||||
|
||||
CMD ["influxd", "-config", "/etc/influxdb/influxdb.conf"]
|
8
influxdb/arm/docker-compose.yml
Normal file
8
influxdb/arm/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
influxdb:
|
||||
image: easypi/influxdb-arm
|
||||
ports:
|
||||
- "8083:8083"
|
||||
- "8086:8086"
|
||||
volumes:
|
||||
- ./data:/var/lib/influxdb
|
||||
restart: always
|
Loading…
x
Reference in New Issue
Block a user