From adcdfffedd4bdaa4a209955409760f4d26e5b516 Mon Sep 17 00:00:00 2001 From: Justin Hammond Date: Mon, 6 Jan 2020 14:48:18 +0800 Subject: [PATCH] update documentation --- README.md | 5 ++++- docs/MQTT.md | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3b67386..363f7ee 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,15 @@ Running: ------------- Start a container with the following command line: -```docker run -it --device=/dev/ttyUSB0 -v /tmp/ozw:/opt/ozw/config -e MQTT_SERVER="10.100.200.102" -e USBPATH=/dev/ttyUSB0 openzwave/ozwdaemon:latest``` +```docker run -it --security-opt seccomp=unconfined --device=/dev/ttyUSB0 -v /tmp/ozw:/opt/ozw/config -e MQTT_SERVER="10.100.200.102" -e USBPATH=/dev/ttyUSB0 openzwave/ozwdaemon:latest``` * replace MQTT_SERVER with the IP address of the MQTT Server * replace all /dev/ttyUSB0 entries with the path to your USB Stick. * OpenZWave Config Files are copied on startup to the host directory specified by /tmp/ozw - You should replace it with a directory that is persistent. +the `--security-opt seccomp=unconfined` is needed to generate meaningfull +backtraces, otherwise it will be difficult for us to debug. + Please see [docs/MQTT.md](docs/MQTT.md) for further information ## QT Wrapper Interface diff --git a/docs/MQTT.md b/docs/MQTT.md index 8e0dce0..fb42603 100755 --- a/docs/MQTT.md +++ b/docs/MQTT.md @@ -1,13 +1,13 @@ MQTT Client for OpenZWave ========================= -Docker Repo: https://hub.docker.com/r/openzwave/ozw-mqtt +Docker Repo: https://hub.docker.com/r/openzwave/ozwdaemon Copy the "config" folder from OZW to `/tmp/ozw/`. Start a container with the following command line: ``` -docker run -it --device=/dev/ttyUSB0 -v /tmp/ozw:/opt/ozw/config -e MQTT_SERVER="10.100.200.102" -e USBPATH=/dev/ttyUSB0 openzwave/ozw-mqtt:latest +docker run -it --security-opt seccomp=unconfined --device=/dev/ttyUSB0 -v /tmp/ozw:/opt/ozw/config -e MQTT_SERVER="10.100.200.102" -e USBPATH=/dev/ttyUSB0 openzwave/ozwdaemon:latest ``` (replace `MQTT_SERVER` with the IP address of the MQTT Server and all `/dev/ttyUSB0` entries with the path to your USB Stick.