File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ the necessary steps needed to create a configuration and run it.
1818Within an empty folder, create a baseline ` mqttwarn.ini ` file:
1919``` shell
2020docker run -it --rm --volume=$PWD :/etc/mqttwarn jpmens/mqttwarn mqttwarn make-config > mqttwarn.ini
21- touch samplefuncs.py
21+ docker run -it --rm --volume= $PWD :/etc/mqttwarn jpmens/mqttwarn mqttwarn make-samplefuncs > samplefuncs.py
2222```
2323
2424Then, assuming your MQTT broker runs on ` localhost ` , amend the ` mqttwarn.ini ` like:
@@ -105,18 +105,6 @@ Then add this argument to `docker run`:
105105--link=mosquitto
106106```
107107
108- ### Custom services
109- You have the option to inject services to the official container.
110- If you have a ` myservice.py ` file, you can add it to the services directory with a new volume mount:
111- ```
112- -v $PWD/myservice.py:/usr/local/lib/python3.8/site-packages/mqttwarn/services/myservice.py
113- ```
114- After doing this, you can use your service like:
115- ``` ini
116- [config:myservice]
117- ```
118- For service development you probably also want to change the loglevel to ` DEBUG ` .
119-
120108
121109### A full example
122110
Original file line number Diff line number Diff line change 1- FROM python:3.8.2 -slim-buster
1+ FROM python:3.9 -slim-buster
22
33# based on https://github.com/pfichtner/docker-mqttwarn
44
You can’t perform that action at this time.
0 commit comments