mirror of https://github.com/certusone/wasmd.git
Automate password entry in setup.sh via env
This commit is contained in:
parent
043eba2ab9
commit
b5618cd37f
|
@ -37,8 +37,9 @@ Run:
|
|||
```sh
|
||||
docker volume rm -f wasmd_data
|
||||
|
||||
# pick a simple (8 char) passphrase for testing.. you will type it many times
|
||||
# pass password (one time) as env variable for setup, so we don't need to keep typing it
|
||||
docker run --rm -it \
|
||||
-e PASSWORD=my-secret-password \
|
||||
--mount type=volume,source=wasmd_data,target=/root \
|
||||
wasmd:manual ./setup.sh
|
||||
|
||||
|
@ -52,4 +53,3 @@ docker run --rm -it \
|
|||
--mount type=volume,source=wasmd_data,target=/root,readonly \
|
||||
wasmd:manual ./logs.sh
|
||||
```
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
PASSWORD=${PASSWORD:-1234567890}
|
||||
|
||||
wasmd init --chain-id=testing testing
|
||||
wasmcli keys add validator
|
||||
wasmd add-genesis-account validator 1000000000stake,1000000000validatortoken
|
||||
wasmd gentx --name validator
|
||||
(echo $PASSWORD; echo $PASSWORD) | wasmcli keys add validator
|
||||
echo $PASSWORD | wasmd add-genesis-account validator 1000000000stake,1000000000validatortoken
|
||||
(echo $PASSWORD; echo $PASSWORD; echo $PASSWORD) | wasmd gentx --name validator
|
||||
wasmd collect-gentxs
|
Loading…
Reference in New Issue