-
Notifications
You must be signed in to change notification settings - Fork 45
/
start.sh
executable file
·14 lines (11 loc) · 920 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if [ $# -eq 0 ]; then
htype='latest'
else
htype='arm'
fi
docker run -d --name=cadvisor -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys:ro -v /var/lib/docker/:/var/lib/docker:ro -p 9092:8080 google/cadvisor
docker run -d --name=edgebroker -v $(pwd)/config.json:/config.json -p 8082:8080 fogflow/broker:$htype
docker run -d --name=edgeworker -v $(pwd)/config.json:/config.json -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock fogflow/worker:$htype
# Edit <Edge_public_IP> in following command and uncomment it to run IoT Agent on Fogflow Edge Node.
# IoT Agent will use embedded mongodb i.e., mongodb will be running on localhost.
#docker run -d --name=iot-agent-json --env IOTA_CB_HOST=<Edge_public_IP> --env IOTA_CB_PORT=8070 --env IOTA_CB_NGSI_VERSION=v1 --env IOTA_MONGO_HOST=localhost --env IOTA_PROVIDER_URL=http://<Edge_public_IP>:4041 -p 4041:4041 -p 7896:7896 fogflow/iotajson-mongo:$htype