1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-22 05:09:09 +02:00

update ot-recorder

This commit is contained in:
kev 2017-05-22 21:53:26 +08:00
parent 37bc217e6e
commit a08c2712ae
7 changed files with 29 additions and 11 deletions

View File

@ -17,6 +17,8 @@ RUN set -xe \
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store 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_HTTPPORT 8083
ENV OTR_TOPICS owntracks/# ENV OTR_TOPICS owntracks/#
VOLUME $OTR_STORAGEDIR VOLUME $OTR_STORAGEDIR

View File

@ -15,12 +15,18 @@ ot-recorder:
- ./data:/var/spool/owntracks/recorder/store - ./data:/var/spool/owntracks/recorder/store
environment: environment:
- OTR_HOST=iot.eclipse.org - OTR_HOST=iot.eclipse.org
- OTR_PORT=1883 - OTR_PORT=8883
- OTR_TOPICS=owntracks/username/# - OTR_USER=username
- OTR_OPTIONS=--browser-apikey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - OTR_PASS=password
- OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
- OTR_TOPICS=owntracks/#
- OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- OTR_OPTIONS=--qos 0
restart: always restart: always
``` ```
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

View File

@ -17,6 +17,8 @@ RUN set -xe \
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store 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_HTTPPORT 8083
ENV OTR_TOPICS owntracks/# ENV OTR_TOPICS owntracks/#
VOLUME $OTR_STORAGEDIR VOLUME $OTR_STORAGEDIR

View File

@ -6,7 +6,11 @@ ot-recorder:
- ./data:/var/spool/owntracks/recorder/store - ./data:/var/spool/owntracks/recorder/store
environment: environment:
- OTR_HOST=iot.eclipse.org - OTR_HOST=iot.eclipse.org
- OTR_PORT=1883 - OTR_PORT=8883
- OTR_TOPICS=owntracks/username/# - OTR_USER=username
- OTR_OPTIONS=--browser-apikey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - OTR_PASS=password
- OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
- OTR_TOPICS=owntracks/#
- OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- OTR_OPTIONS=--qos 0
restart: always restart: always

View File

@ -10,4 +10,4 @@ then
ot-recorder --initialize ot-recorder --initialize
fi fi
exec ot-recorder --http-host 0.0.0.0 $OTR_OPTIONS $OTR_TOPICS exec ot-recorder --http-host $OTR_HTTPHOST --http-port $OTR_HTTPPORT $OTR_OPTIONS

View File

@ -6,7 +6,11 @@ ot-recorder:
- ./data:/var/spool/owntracks/recorder/store - ./data:/var/spool/owntracks/recorder/store
environment: environment:
- OTR_HOST=iot.eclipse.org - OTR_HOST=iot.eclipse.org
- OTR_PORT=1883 - OTR_PORT=8883
- OTR_TOPICS=owntracks/username/# - OTR_USER=username
- OTR_OPTIONS=--browser-apikey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - OTR_PASS=password
- OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
- OTR_TOPICS=owntracks/#
- OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- OTR_OPTIONS=--qos 0
restart: always restart: always

View File

@ -10,4 +10,4 @@ then
ot-recorder --initialize ot-recorder --initialize
fi fi
exec ot-recorder --http-host 0.0.0.0 $OTR_OPTIONS $OTR_TOPICS exec ot-recorder --http-host $OTR_HTTPHOST --http-port $OTR_HTTPPORT $OTR_OPTIONS