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:
parent
758840f2e4
commit
b51bfef974
@ -14,12 +14,12 @@ RUN set -xe \
|
||||
&& 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
|
||||
ENV OTR_HTTPHOST 0.0.0.0
|
||||
ENV OTR_HTTPPORT 8083
|
||||
ENV OTR_TOPICS owntracks/#
|
||||
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
|
||||
|
||||
VOLUME $OTR_STORAGEDIR
|
||||
|
||||
|
@ -25,9 +25,11 @@ ot-recorder:
|
||||
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.
|
||||
|
||||
Click [this][2] to generate a google map api key.
|
||||
|
||||
[1]: https://github.com/owntracks/recorder
|
||||
[2]: https://developers.google.com/maps/documentation/javascript/?authuser=1
|
||||
[3]: https://github.com/owntracks/recorder#configuration-file
|
||||
|
@ -14,12 +14,12 @@ RUN set -xe \
|
||||
&& 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
|
||||
ENV OTR_HTTPHOST 0.0.0.0
|
||||
ENV OTR_HTTPPORT 8083
|
||||
ENV OTR_TOPICS owntracks/#
|
||||
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
|
||||
|
||||
VOLUME $OTR_STORAGEDIR
|
||||
|
||||
|
@ -12,5 +12,5 @@ ot-recorder:
|
||||
- OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
|
||||
- OTR_TOPICS=owntracks/#
|
||||
- OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||
- OTR_OPTIONS=--qos 0
|
||||
# OTR_OPTIONS=--debug
|
||||
restart: always
|
||||
|
@ -10,4 +10,4 @@ then
|
||||
ot-recorder --initialize
|
||||
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/#}
|
||||
|
@ -12,5 +12,5 @@ ot-recorder:
|
||||
- OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
|
||||
- OTR_TOPICS=owntracks/#
|
||||
- OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||
- OTR_OPTIONS=--qos 0
|
||||
# OTR_OPTIONS=--debug
|
||||
restart: always
|
||||
|
@ -10,4 +10,4 @@ then
|
||||
ot-recorder --initialize
|
||||
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/#}
|
||||
|
Loading…
x
Reference in New Issue
Block a user