Skip to content

Commit 05d7429

Browse files
committed
Improve Docker setup
1 parent a968aee commit 05d7429

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

DOCKER.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ the necessary steps needed to create a configuration and run it.
1818
Within an empty folder, create a baseline `mqttwarn.ini` file:
1919
```shell
2020
docker 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

2424
Then, 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

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

0 commit comments

Comments
 (0)