blob: 1eaa9542a0035abd24cc743740767d009b1ebf36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
if [[ ! $1 ]]; then
echo "Usage: "
echo " ./create-smart-relay-containter.sh [mqtt-password]"
exit;
fi;
docker run \
-d \
--rm \
--network host \
-v /dev/ttyUSB0:/dev/ttyUSB0 \
-v smart-relay-racket-files:/.local \
--privileged \
racket-smart-relay-bash-nss-certs \
smart-relay "#:host \"mqtt.hack\" #:username \"iot_basic\" #:password \"$1\" #:topic-name \"hsp/bobma/smart-relay\""
|