@transitive-sdk/utils-caps 0.2.9 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docker.sh +4 -3
- package/package.json +1 -1
- package/rundev.sh +2 -1
package/docker.sh
CHANGED
|
@@ -62,8 +62,10 @@ mkdir -p /tmp/pers/common
|
|
|
62
62
|
PERS_CAP_DIR=/tmp/pers/${CAP_NAME//\"/}
|
|
63
63
|
mkdir -p $PERS_CAP_DIR
|
|
64
64
|
|
|
65
|
-
# bind mounts for all .js files in capability root folder
|
|
66
|
-
jsFiles=$(for n in *.js
|
|
65
|
+
# bind mounts for all non-symlink .js files in capability root folder and cloud
|
|
66
|
+
jsFiles=$(for n in $(find *.js cloud/*.js -not -type l 2> /dev/null); do
|
|
67
|
+
echo -v $PWD/$n:/app/$n;
|
|
68
|
+
done)
|
|
67
69
|
|
|
68
70
|
docker run -it --rm --init \
|
|
69
71
|
--env MQTT_URL=mqtts://mosquitto \
|
|
@@ -73,7 +75,6 @@ docker run -it --rm --init \
|
|
|
73
75
|
-p $PORT:1000 -p $PORT:1000/udp \
|
|
74
76
|
-v /tmp/pers/common:/persistent/common \
|
|
75
77
|
-v $PERS_CAP_DIR:/persistent/self \
|
|
76
|
-
-v $PWD/cloud:/app/cloud \
|
|
77
78
|
$jsFiles \
|
|
78
79
|
--network=cloud_caps \
|
|
79
80
|
--name $CONTAINER_NAME \
|
package/package.json
CHANGED
package/rundev.sh
CHANGED
|
@@ -54,4 +54,5 @@ TRPACKAGE=$CAP \
|
|
|
54
54
|
TRCONFIG="$(cat ~/.transitive/config.json | tr -d '\n' | sed "s#$CAP#package#")" \
|
|
55
55
|
NODE_ARGS=$@ \
|
|
56
56
|
TRANSITIVE_IS_ROBOT=1 \
|
|
57
|
-
|
|
57
|
+
FORCE_COLOR=1 \
|
|
58
|
+
npm start "ignore, for monitoring: startPackage.sh $CAP" 2>&1 | tee -a ~/.transitive/packages/$CAP/log
|