2017-03-31 10:35:00 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for ot-recorder
|
|
|
|
#
|
|
|
|
|
2019-10-01 15:20:17 +02:00
|
|
|
FROM debian:buster
|
2017-03-31 10:35:00 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apt-get update \
|
2017-08-10 10:16:40 +02:00
|
|
|
&& apt-get install -y curl gnupg \
|
2017-03-31 10:35:00 +02:00
|
|
|
&& curl -sSL http://repo.owntracks.org/repo.owntracks.org.gpg.key | apt-key add - \
|
2019-10-01 15:20:17 +02:00
|
|
|
&& echo 'deb http://repo.owntracks.org/debian buster main' > /etc/apt/sources.list.d/owntracks.list \
|
2017-03-31 10:35:00 +02:00
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y ot-recorder \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
|
|
|
|
ENV OTR_HOST iot.eclipse.org
|
|
|
|
ENV OTR_PORT 1883
|
2017-05-22 15:53:26 +02:00
|
|
|
ENV OTR_HTTPHOST 0.0.0.0
|
|
|
|
ENV OTR_HTTPPORT 8083
|
2017-04-01 08:30:23 +02:00
|
|
|
ENV OTR_TOPICS owntracks/#
|
2017-03-31 10:35:00 +02:00
|
|
|
|
|
|
|
VOLUME $OTR_STORAGEDIR
|
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
EXPOSE 8083
|