-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.3.0: revert updates, moved in the new release v2.3.1.
- Loading branch information
Showing
12 changed files
with
25 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ RUN apt-get update && apt-get install -y \ | |
socat dsniff fuse libfuse-dev git ntpdate python pkg-config build-essential gdb \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN npm install -g --unsafe gyp [email protected] [email protected] nconf @mdslab/wstun fuse-bindings requestify is-running connection-tester [email protected] q fs-access mknod jsonfile md5 python-shell net node-red lsof\ | ||
|
||
RUN npm install -g --unsafe gyp autobahn nconf @mdslab/wstun fuse-bindings requestify is-running connection-tester [email protected] q fs-access mknod jsonfile md5 python-shell net node-red lsof\ | ||
&& npm install -g --unsafe https://github.com/PlayNetwork/node-statvfs/tarball/v3.0.0 \ | ||
&& npm cache --force clean | ||
|
||
|
@@ -22,13 +23,10 @@ RUN git clone --depth=1 git://github.com/MDSLab/s4t-lightning-rod.git ./@mdslab/ | |
ENV NODE_PATH=/usr/local/lib/node_modules | ||
ENV IOTRONIC_HOME=/var/lib/iotronic | ||
ENV LIGHTNINGROD_HOME=/usr/local/lib/node_modules/@mdslab/iotronic-lightning-rod | ||
ENV NODE_TLS_REJECT_UNAUTHORIZED=0 | ||
|
||
RUN cp /usr/local/lib/node_modules/@mdslab/iotronic-lightning-rod/modules/plugins-manager/plugins.example.json /var/lib/iotronic/plugins/plugins.json \ | ||
&& cp /usr/local/lib/node_modules/@mdslab/iotronic-lightning-rod/modules/drivers-manager/drivers.example.json /var/lib/iotronic/drivers/drivers.json | ||
|
||
RUN cp /usr/local/lib/node_modules/@mdslab/iotronic-lightning-rod/etc/logrotate.d/lightning-rod.log /etc/logrotate.d/lightning-rod.log | ||
|
||
WORKDIR /usr/local/lib/node_modules/@mdslab/iotronic-lightning-rod/ | ||
|
||
VOLUME /var/lib/iotronic | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ reboot | |
|
||
##### Install required NodeJS modules via npm: | ||
``` | ||
npm install -g --unsafe gyp autobahn@18.10.2 [email protected] nconf @mdslab/wstun fuse-bindings requestify is-running connection-tester [email protected] q fs-access mknod jsonfile md5 python-shell net lsof | ||
npm install -g --unsafe gyp autobahn nconf @mdslab/wstun fuse-bindings requestify is-running connection-tester [email protected] q fs-access mknod jsonfile md5 python-shell net lsof | ||
npm install -g --unsafe https://github.com/PlayNetwork/node-statvfs/tarball/v3.0.0 | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ reboot | |
|
||
##### Install required NodeJS modules via npm: | ||
``` | ||
npm install -g --unsafe gyp autobahn@18.10.2 [email protected] nconf @mdslab/wstun fuse-bindings requestify is-running connection-tester [email protected] q fs-access mknod jsonfile md5 python-shell net lsof | ||
npm install -g --unsafe gyp autobahn nconf @mdslab/wstun fuse-bindings requestify is-running connection-tester [email protected] q fs-access mknod jsonfile md5 python-shell net lsof | ||
npm install -g --unsafe https://github.com/PlayNetwork/node-statvfs/tarball/v3.0.0 | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ reboot | |
|
||
##### Install required NodeJS modules via npm: | ||
``` | ||
npm install -g --unsafe gyp autobahn@18.10.2 [email protected] nconf @mdslab/wstun fuse-bindings requestify is-running connection-tester [email protected] q fs-access mknod jsonfile md5 python-shell net lsof | ||
npm install -g --unsafe gyp autobahn nconf @mdslab/wstun fuse-bindings requestify is-running connection-tester [email protected] q fs-access mknod jsonfile md5 python-shell net lsof | ||
npm install -g --unsafe https://github.com/PlayNetwork/node-statvfs/tarball/v3.0.0 | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ reboot | |
|
||
##### Install required NodeJS modules via npm: | ||
``` | ||
npm install -g --unsafe gyp autobahn@18.10.2 [email protected] nconf @mdslab/wstun fuse-bindings requestify is-running connection-tester [email protected] q fs-access mknod jsonfile md5 python-shell net lsof | ||
npm install -g --unsafe gyp autobahn nconf @mdslab/wstun fuse-bindings requestify is-running connection-tester [email protected] q fs-access mknod jsonfile md5 python-shell net lsof | ||
npm install -g --unsafe https://github.com/PlayNetwork/node-statvfs/tarball/v3.0.0 | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
#!/bin/sh | ||
|
||
if [ "$#" -ne 3 ]; then | ||
echo "Usage: ./configure_LR_arancino.sh <BOARD_ID> <BOARD_PASSWORD> <WAMP_URL> <WSTUN_URL> </CONFIG/PATH/>" | ||
exi | ||
echo "Usage: ./configure_LR_arancino.sh <BOARD_ID> <BOARD_PASSWORD> <WAMP_URL> </CONFIG/PATH/>" | ||
exit | ||
fi | ||
|
||
echo "Stack4Things Lightning-rod configuration with the following parameters:" | ||
echo " --> Device UUID: "$1 | ||
echo " --> Device password: "$2 | ||
echo " --> WAMP URL: "$3 | ||
echo " --> WSTUN URL: "$4 | ||
echo " --> Configuration file path: "$5 | ||
echo " --> Configuration file path: "$4 | ||
|
||
sed -i "s/\"layout\":.*\"\"/\"layout\": \"server\"/g" $5 | ||
sed -i "s/\"code\":.*\"\"/\"code\": \"$1\"/g" $5 | ||
sed -i "s/\"password\":.*\"\"/\"password\": \"$2\"/g" $5 | ||
sed -i "s,\"url_wamp\":.*,\"url_wamp\": \"$3\"\,,g" $5 | ||
sed -i "s,\"ws_url\":.*,\"ws_url\": \"$4\"\,,g" $5 | ||
sed -i "s/\"bin\":.*\"\"/\"bin\": \"\/usr\/lib\/node_modules\/@mdslab\/wstun\/bin\/wstun.js\"/g" $5 | ||
sed -i "s/\"layout\":.*\"\"/\"layout\": \"server\"/g" $4 | ||
sed -i "s/\"code\":.*\"\"/\"code\": \"$1\"/g" $4 | ||
sed -i "s/\"password\":.*\"\"/\"password\": \"$1\"/g" $4 | ||
sed -i "s,\"url_wamp\":.*,\"url_wamp\": \"$3\"\,,g" $4 | ||
sed -i "s,\"ws_url\":.*,\"ws_url\": \"$3\"\,,g" $4 | ||
sed -i "s/\"bin\":.*\"\"/\"bin\": \"\/usr\/lib\/node_modules\/@mdslab\/wstun\/bin\/wstun.js\"/g" $4 | ||
echo -e "\nauthentication.json file configured." |
This file was deleted.
Oops, something went wrong.