14 lines
256 B
Bash
Executable File
14 lines
256 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CONFIG=broker-no-tls-config
|
|
|
|
if [[ $1 == "secure" ]]; then
|
|
CONFIG=broker-tls-config
|
|
fi
|
|
|
|
docker run --rm -d \
|
|
--user "$UID" \
|
|
-p 8883:8883 \
|
|
-v "$(pwd)/test/$CONFIG:/mosquitto/config" \
|
|
--name mosquitto \
|
|
eclipse-mosquitto |