From d9fe2d29be8aabf3d56b649063a3c1a13b606507 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 30 Oct 2020 14:46:23 +0200 Subject: [PATCH] pwd --- start-iotclient-n.sh | 3 ++- start-iotclient.sh | 3 ++- start-iotserver.sh | 4 ++-- start-iotwebclient.sh | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/start-iotclient-n.sh b/start-iotclient-n.sh index 83fb029..5a912ab 100755 --- a/start-iotclient-n.sh +++ b/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 diff --git a/start-iotclient.sh b/start-iotclient.sh index c7195a2..0438fc5 100755 --- a/start-iotclient.sh +++ b/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 diff --git a/start-iotserver.sh b/start-iotserver.sh index 451d566..8eb0c5d 100755 --- a/start-iotserver.sh +++ b/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 diff --git a/start-iotwebclient.sh b/start-iotwebclient.sh index 89aa763..94bc238 100755 --- a/start-iotwebclient.sh +++ b/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"