Merge pull request #4 from confio/fix-cli

cli.sh works directory independent
This commit is contained in:
Simon Warta 2020-01-23 12:59:58 +01:00 committed by GitHub
commit 624180bcd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,16 +6,15 @@ command -v shellcheck > /dev/null && shellcheck "$0"
REPOSITORY="cosmwasm/wasmd"
VERSION="manual"
CURRENT_DIR="$(realpath "$(dirname "$0")")"
BLOCKCHAIN_CONTAINER_NAME="wasmd"
HOME_DIR="/home"
# TODO: make this run as UID? Does this matter?
HOME_DIR="/root"
docker run \
--rm \
--user="$UID" \
-it \
-v "$CURRENT_DIR/.gaiad:$HOME_DIR/.gaiad" \
-v "$CURRENT_DIR/.gaiacli:$HOME_DIR/.gaiacli" \
--mount type=volume,source=wasmcli_data,target=/root/.wasmcli \
-w "$HOME_DIR" \
--env "HOME=$HOME_DIR" \
--net "container:$BLOCKCHAIN_CONTAINER_NAME" \