From 6fda6135ea8ad5d81eae875139ae2a1fa8d69f30 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Thu, 7 Jan 2021 21:18:59 +0100 Subject: [PATCH] Update docker instructions in README --- README.md | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index bdfb9674..afa9561d 100644 --- a/README.md +++ b/README.md @@ -119,17 +119,12 @@ docker volume rm -f wasmd_data docker run --rm -it \ -e PASSWORD=xxxxxxxxx \ --mount type=volume,source=wasmd_data,target=/root \ - cosmwasm/wasmd:latest ./setup_wasmd.sh cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 + cosmwasm/wasmd:latest /opt/setup_wasmd.sh cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 -# This will start both wasmd and rest-server, only rest-serve output is shown on the screen +# This will start both wasmd and rest-server, both are logged docker run --rm -it -p 26657:26657 -p 26656:26656 -p 1317:1317 \ --mount type=volume,source=wasmd_data,target=/root \ - cosmwasm/wasmd: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:latest ./logs.sh + cosmwasm/wasmd:latest /opt/run_wasmd.sh ``` ### CI @@ -142,7 +137,7 @@ rm -rf ./template && mkdir ./template docker run --rm -it \ -e PASSWORD=xxxxxxxxx \ --mount type=bind,source=$(pwd)/template,target=/root \ - cosmwasm/wasmd:latest ./setup_wasmd.sh cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 + cosmwasm/wasmd:latest /opt/setup_wasmd.sh cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6 sudo chown -R $(id -u):$(id -g) ./template @@ -153,17 +148,12 @@ docker volume rm -f wasmd_data docker run --rm -it -p 26657:26657 -p 26656:26656 -p 9090:9090 \ --mount type=bind,source=$(pwd)/template,target=/template \ --mount type=volume,source=wasmd_data,target=/root \ - cosmwasm/wasmd:latest ./run_all.sh /template + cosmwasm/wasmd:latest /opt/run_wasmd.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: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:latest ./logs.sh + cosmwasm/wasmd:latest /opt/run_wasmd.sh ``` ## Runtime flags