From 0df122c08b40ef636d624252ea0ca40d249d0e91 Mon Sep 17 00:00:00 2001 From: Alex Peters Date: Fri, 24 Jan 2020 16:43:26 +0100 Subject: [PATCH 1/2] Update Docker image and pw --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4fbaafeea..15c395396 100644 --- a/README.md +++ b/README.md @@ -55,19 +55,19 @@ docker volume rm -f wasmd_data # pass password (one time) as env variable for setup, so we don't need to keep typing it # add some addresses that you have private keys for (locally) to give them genesis funds docker run --rm -it \ - -e PASSWORD=my-secret-password \ + -e PASSWORD=xxxxxxxxx \ --mount type=volume,source=wasmd_data,target=/root \ - cosmwasm/wasmd:manual ./setup.sh cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 + cosmwasm/wasmd-demo:latest ./setup.sh cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 # This will start both wasmd and wasmcli rest-server, only wasmcli output is shown on the screen docker run --rm -it -p 26657:26657 -p 26656:26656 -p 1317:1317 \ --mount type=volume,source=wasmd_data,target=/root \ - cosmwasm/wasmd:manual ./run_all.sh + cosmwasm/wasmd-demo:latest ./run_all.sh # view wasmd logs in another shell docker run --rm -it \ --mount type=volume,source=wasmd_data,target=/root,readonly \ - cosmwasm/wasmd:manual ./logs.sh + cosmwasm/wasmd-demo:latest ./logs.sh ``` ### CI @@ -78,9 +78,9 @@ For CI, we want to generate a template one time and save to disk/repo. Then we c # Init chain and pass addresses so they are non-empty accounts rm -rf ./template && mkdir ./template docker run --rm -it \ - -e PASSWORD=my-secret-password \ + -e PASSWORD=xxxxxxxxx \ --mount type=bind,source=$(pwd)/template,target=/root \ - cosmwasm/wasmd:manual ./setup.sh cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 + cosmwasm/wasmd-demo:latest ./setup.sh cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 sudo chown -R $(id -u):$(id -g) ./template @@ -91,15 +91,15 @@ docker volume rm -f wasmd_data docker run --rm -it -p 26657:26657 -p 26656:26656 -p 1317:1317 \ --mount type=bind,source=$(pwd)/template,target=/template \ --mount type=volume,source=wasmd_data,target=/root \ - cosmwasm/wasmd:manual ./run_all.sh /template + cosmwasm/wasmd-demo:latest ./run_all.sh /template # RESTART CHAIN with existing state docker run --rm -it -p 26657:26657 -p 26656:26656 -p 1317:1317 \ --mount type=volume,source=wasmd_data,target=/root \ - cosmwasm/wasmd:manual ./run_all.sh + cosmwasm/wasmd-demo:latest ./run_all.sh # view wasmd logs in another shell docker run --rm -it \ --mount type=volume,source=wasmd_data,target=/root,readonly \ - cosmwasm/wasmd:manual ./logs.sh + cosmwasm/wasmd-demo:latest ./logs.sh ``` From 6a3df66c5a4c3bc21713b3da6194beb40eb74b78 Mon Sep 17 00:00:00 2001 From: Alex Peters Date: Fri, 24 Jan 2020 16:44:00 +0100 Subject: [PATCH 2/2] Fix failing wasmd on fresh volume --- docker/run_all.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/run_all.sh b/docker/run_all.sh index 1dc95a486..e17a0cb11 100755 --- a/docker/run_all.sh +++ b/docker/run_all.sh @@ -1,5 +1,8 @@ #!/bin/bash +set -euo pipefail +mkdir -p /root/log +touch /root/log/wasmd.log ./run_wasmd.sh >> /root/log/wasmd.log & sleep 4