From 3bc3e687d952b48990391229c409fdc817e13389 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Thu, 23 Jan 2020 12:36:33 +0100 Subject: [PATCH] cli.sh works directory independent --- scripts/cosm/cli.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/cosm/cli.sh b/scripts/cosm/cli.sh index f7131106aa..b013cc1ae5 100755 --- a/scripts/cosm/cli.sh +++ b/scripts/cosm/cli.sh @@ -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" \