zeus 4 years ago
parent
commit
d9fe2d29be
  1. 3
      start-iotclient-n.sh
  2. 3
      start-iotclient.sh
  3. 4
      start-iotserver.sh
  4. 3
      start-iotwebclient.sh

3
start-iotclient-n.sh

@ -1,3 +1,4 @@
#!/bin/bash
docker run --rm -it --name iotclient-n --network="host" -v $PWD/src:/home/node/iot-swarm-example/src hub.swarmlab.io:5443/iot-swarm-example:latest node /home/node/iot-swarm-example/src/IoT/llo/bclient.js
#docker run --rm -it --name iotclient-n --network="host" -v $PWD/src:/home/node/iot-swarm-example/src hub.swarmlab.io:5480/iot-swarm-example:latest node /home/node/iot-swarm-example/src/IoT/llo/bclient.js
docker run --rm -it --name iotclient-n --network="host" -v "$(pwd)/src:/home/node/iot-swarm-example/src" hub.swarmlab.io:5480/iot-swarm-example:latest node /home/node/iot-swarm-example/src/IoT/llo/bclient.js

3
start-iotclient.sh

@ -1,3 +1,4 @@
#!/bin/bash
docker run --rm -it --name iotclient -p 3081:3081 --network="host" -v $PWD/src:/home/node/iot-swarm-example/src hub.swarmlab.io:5443/iot-swarm-example:latest node /home/node/iot-swarm-example/src/IoT/llo/iotclient.js
#docker run --rm -it --name iotclient -p 3081:3081 --network="host" -v $PWD/src:/home/node/iot-swarm-example/src hub.swarmlab.io:5480/iot-swarm-example:latest node /home/node/iot-swarm-example/src/IoT/llo/iotclient.js
docker run --rm -it --name iotclient -p 3081:3081 --network="host" -v "$(pwd)/src:/home/node/iot-swarm-example/src" hub.swarmlab.io:5480/iot-swarm-example:latest node /home/node/iot-swarm-example/src/IoT/llo/iotclient.js

4
start-iotserver.sh

@ -1,4 +1,4 @@
#!/bin/bash
#docker run --rm -it -p 8084:8084 -v $PWD/src:/home/node/iot-swarm-example/src hub.swarmlab.io:5443/iot-swarm-example:latest bash -c "node /home/node/iot-swarm-example/src/IoT/llo/iotserver.js"
docker run --rm -it --name iotserver -p 8084:8084 -v $PWD/src:/home/node/iot-swarm-example/src hub.swarmlab.io:5443/iot-swarm-example:latest node /home/node/iot-swarm-example/src/IoT/llo/iotserver.js
#docker run --rm -it --name iotserver -p 8084:8084 -v $PWD/src:/home/node/iot-swarm-example/src hub.swarmlab.io:5480/iot-swarm-example:latest node /home/node/iot-swarm-example/src/IoT/llo/iotserver.js
docker run --rm -it --name iotserver -p 8084:8084 -v "$(pwd)/src:/home/node/iot-swarm-example/src" hub.swarmlab.io:5480/iot-swarm-example:latest node /home/node/iot-swarm-example/src/IoT/llo/iotserver.js

3
start-iotwebclient.sh

@ -1,3 +1,4 @@
#!/bin/bash
docker run --rm -it --name iotwebclient -p 8080:8080 -v $PWD/src:/home/node/iot-swarm-example/src hub.swarmlab.io:5443/iot-swarm-example:latest /bin/bash -c "cd /home/node/iot-swarm-example/src/browser-client; npm run serve"
#docker run --rm -it --name iotwebclient -p 8080:8080 -v $PWD/src:/home/node/iot-swarm-example/src hub.swarmlab.io:5480/iot-swarm-example:latest /bin/bash -c "cd /home/node/iot-swarm-example/src/browser-client; npm run serve"
docker run --rm -it --name iotwebclient -p 8080:8080 -v "$(pwd)/src:/home/node/iot-swarm-example/src" hub.swarmlab.io:5480/iot-swarm-example:latest /bin/bash -c "cd /home/node/iot-swarm-example/src/browser-client; npm run serve"

Loading…
Cancel
Save