2020-10-15 14:08:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-10-16 08:57:38 +00:00
|
|
|
CONFIG=broker-no-tls-config
|
|
|
|
|
|
|
|
if [[ $1 == "secure" ]]; then
|
|
|
|
CONFIG=broker-tls-config
|
|
|
|
fi
|
|
|
|
|
|
|
|
docker run --rm -d \
|
2020-10-15 22:10:03 +00:00
|
|
|
--user "$UID" \
|
|
|
|
-p 8883:8883 \
|
2020-10-16 08:57:38 +00:00
|
|
|
-v "$(pwd)/test/$CONFIG:/mosquitto/config" \
|
2020-10-15 22:10:03 +00:00
|
|
|
--name mosquitto \
|
|
|
|
eclipse-mosquitto
|