File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ if [[ $BUILD_BINARY == "1" ]]; then
61
61
fi
62
62
63
63
echo " *** Building chainspec..."
64
- " $BUILD_DIR /release/node-subtensor" build-spec --disable-default-bootnode --raw --chain $CHAIN > $FULL_PATH
64
+ " $BUILD_DIR /release/node-subtensor" build-spec --disable-default-bootnode --raw --chain " $CHAIN " > " $FULL_PATH "
65
65
echo " *** Chainspec built and output to file"
66
66
67
67
# Generate node keys
79
79
80
80
if [ $BUILD_ONLY -eq 0 ]; then
81
81
echo " *** Starting localnet nodes..."
82
+
82
83
alice_start=(
83
84
" $BUILD_DIR /release/node-subtensor"
84
85
--base-path /tmp/alice
@@ -107,11 +108,17 @@ if [ $BUILD_ONLY -eq 0 ]; then
107
108
--unsafe-force-node-key-generation
108
109
)
109
110
111
+ # Provide RUN_IN_DOCKER local environment variable if run script in the docker image
112
+ if [ " ${RUN_IN_DOCKER} " == " 1" ]; then
113
+ alice_start+=(--unsafe-rpc-external)
114
+ bob_start+=(--unsafe-rpc-external)
115
+ fi
116
+
110
117
trap ' pkill -P $$' EXIT SIGINT SIGTERM
111
118
112
119
(
113
120
(" ${alice_start[@]} " 2>&1 ) &
114
121
(" ${bob_start[@]} " 2>&1 )
115
122
wait
116
123
)
117
- fi
124
+ fi
You can’t perform that action at this time.
0 commit comments