Separated out run_all from run_wasmd to execute as two processes

This commit is contained in:
Ethan Frey
2020-01-22 15:29:24 +01:00
parent 0380eadcf3
commit d1989df0eb
5 changed files with 21 additions and 20 deletions

0
docker/logs.sh Normal file → Executable file
View File

View File

@@ -1,17 +0,0 @@
#!/bin/bash
if test -n "$1"; then
# need -R not -r to copy hidden files
cp -R "$1/.wasmd" /root
cp -R "$1/.wasmcli" /root
fi
echo Starting Wasmd...
mkdir -p /root/log
wasmd start --rpc.laddr tcp://0.0.0.0:26657 >> /root/log/wasmd.log &
sleep 4
echo Starting Rest Server...
wasmcli rest-server --laddr tcp://0.0.0.0:1317 --trust-node

8
docker/run_all.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
./run_wasmd.sh >> /root/log/wasmd.log &
sleep 4
echo Starting Rest Server...
wasmcli rest-server --laddr tcp://0.0.0.0:1317 --trust-node

10
docker/run_wasmd.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
if test -n "$1"; then
# need -R not -r to copy hidden files
cp -R "$1/.wasmd" /root
cp -R "$1/.wasmcli" /root
fi
mkdir -p /root/log
wasmd start --rpc.laddr tcp://0.0.0.0:26657