1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-04-21 12:07:00 +02:00

update ot-recorder

This commit is contained in:
kev 2019-10-01 22:47:40 +08:00
parent 758840f2e4
commit b51bfef974
7 changed files with 8 additions and 6 deletions

View File

@ -14,12 +14,12 @@ RUN set -xe \
&& apt-get install -y ot-recorder \ && apt-get install -y ot-recorder \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
ENV OTR_HOST iot.eclipse.org ENV OTR_HOST iot.eclipse.org
ENV OTR_PORT 1883 ENV OTR_PORT 1883
ENV OTR_HTTPHOST 0.0.0.0 ENV OTR_HTTPHOST 0.0.0.0
ENV OTR_HTTPPORT 8083 ENV OTR_HTTPPORT 8083
ENV OTR_TOPICS owntracks/# ENV OTR_TOPICS owntracks/#
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
VOLUME $OTR_STORAGEDIR VOLUME $OTR_STORAGEDIR

View File

@ -25,9 +25,11 @@ ot-recorder:
restart: always restart: always
``` ```
:warning: Some variables don't work (`OTR_QOS`) as [document][3] said.
You can pass any options to process via `OTR_OPTIONS` environment variable. You can pass any options to process via `OTR_OPTIONS` environment variable.
Click [this][2] to generate a google map api key. Click [this][2] to generate a google map api key.
[1]: https://github.com/owntracks/recorder [1]: https://github.com/owntracks/recorder
[2]: https://developers.google.com/maps/documentation/javascript/?authuser=1 [2]: https://developers.google.com/maps/documentation/javascript/?authuser=1
[3]: https://github.com/owntracks/recorder#configuration-file

View File

@ -14,12 +14,12 @@ RUN set -xe \
&& apt-get install -y ot-recorder \ && apt-get install -y ot-recorder \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
ENV OTR_HOST iot.eclipse.org ENV OTR_HOST iot.eclipse.org
ENV OTR_PORT 1883 ENV OTR_PORT 1883
ENV OTR_HTTPHOST 0.0.0.0 ENV OTR_HTTPHOST 0.0.0.0
ENV OTR_HTTPPORT 8083 ENV OTR_HTTPPORT 8083
ENV OTR_TOPICS owntracks/# ENV OTR_TOPICS owntracks/#
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
VOLUME $OTR_STORAGEDIR VOLUME $OTR_STORAGEDIR

View File

@ -12,5 +12,5 @@ ot-recorder:
- OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem - OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
- OTR_TOPICS=owntracks/# - OTR_TOPICS=owntracks/#
- OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- OTR_OPTIONS=--qos 0 # OTR_OPTIONS=--debug
restart: always restart: always

View File

@ -10,4 +10,4 @@ then
ot-recorder --initialize ot-recorder --initialize
fi fi
exec ot-recorder --http-host $OTR_HTTPHOST --http-port $OTR_HTTPPORT $OTR_OPTIONS exec ot-recorder --http-host $OTR_HTTPHOST --http-port $OTR_HTTPPORT $OTR_OPTIONS ${OTR_TOPICS:-owntracks/#}

View File

@ -12,5 +12,5 @@ ot-recorder:
- OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem - OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
- OTR_TOPICS=owntracks/# - OTR_TOPICS=owntracks/#
- OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- OTR_OPTIONS=--qos 0 # OTR_OPTIONS=--debug
restart: always restart: always

View File

@ -10,4 +10,4 @@ then
ot-recorder --initialize ot-recorder --initialize
fi fi
exec ot-recorder --http-host $OTR_HTTPHOST --http-port $OTR_HTTPPORT $OTR_OPTIONS exec ot-recorder --http-host $OTR_HTTPHOST --http-port $OTR_HTTPPORT $OTR_OPTIONS ${OTR_TOPICS:-owntracks/#}