From d08fa865c3021690507ae0499e63e705fcc4245e Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 23 Jan 2020 11:06:17 +0100 Subject: [PATCH] Allow starting from different directory --- scripts/cosm/start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/cosm/start.sh b/scripts/cosm/start.sh index ec800a8a..383403d3 100755 --- a/scripts/cosm/start.sh +++ b/scripts/cosm/start.sh @@ -11,6 +11,7 @@ chmod 777 "$TMP_DIR" echo "Using temporary dir $TMP_DIR" WASMD_LOGFILE="$TMP_DIR/wasmd.log" REST_SERVER_LOGFILE="$TMP_DIR/rest-server.log" +SCRIPT_DIR="$(realpath "$(dirname "$0")")" CONTAINER_NAME="wasmd" # This starts up wasmd @@ -20,7 +21,7 @@ docker run --rm \ -p 1317:1317 \ -p 26657:26657 \ -p 26656:26656 \ - --mount type=bind,source="$(pwd)/template",target=/template \ + --mount type=bind,source="$SCRIPT_DIR/template",target=/template \ --mount type=volume,source=wasmd_data,target=/root \ "$REPOSITORY:$VERSION" \ ./run_wasmd.sh /template \