forked from CosmWasm/wasmvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request CosmWasm#39 from cosmwasm/alex/docker_wip
WIP: Dockerize
- Loading branch information
Showing
6 changed files
with
120 additions
and
17 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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
tail -f /root/log/wasmd.log |
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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
PASSWORD=${PASSWORD:-1234567890} | ||
|
||
wasmd init --chain-id=testing testing | ||
(echo $PASSWORD; echo $PASSWORD) | wasmcli keys add validator | ||
# hardcode the validator account for this instance | ||
echo $PASSWORD | wasmd add-genesis-account validator 1000000000stake,1000000000cosm | ||
# (optionally) add a few more genesis accounts | ||
for addr in "$@"; do | ||
wasmd add-genesis-account $addr 1000000000stake,1000000000cosm | ||
done | ||
# submit a genesis validator tx | ||
(echo $PASSWORD; echo $PASSWORD; echo $PASSWORD) | wasmd gentx --name validator | ||
wasmd collect-gentxs |