mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Put configuration in one file, use auto-built wasm-demo:latest tag
This commit is contained in:
parent
065b1883ed
commit
e94f32c765
@ -2,11 +2,9 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
command -v shellcheck > /dev/null && shellcheck "$0"
|
||||
|
||||
# Choose from https://hub.docker.com/r/cosmwasm/wasmd/tags
|
||||
REPOSITORY="cosmwasm/wasmd"
|
||||
VERSION="manual"
|
||||
|
||||
BLOCKCHAIN_CONTAINER_NAME="wasmd"
|
||||
SCRIPT_DIR="$(realpath "$(dirname "$0")")"
|
||||
source "$SCRIPT_DIR"/env
|
||||
|
||||
# TODO: make this run as UID? Does this matter?
|
||||
HOME_DIR="/root"
|
||||
|
@ -2,17 +2,14 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
command -v shellcheck > /dev/null && shellcheck "$0"
|
||||
|
||||
# Choose from https://hub.docker.com/r/cosmwasm/wasmd/tags
|
||||
REPOSITORY="cosmwasm/wasmd"
|
||||
VERSION="manual"
|
||||
SCRIPT_DIR="$(realpath "$(dirname "$0")")"
|
||||
source "$SCRIPT_DIR"/env
|
||||
|
||||
TMP_DIR=$(mktemp -d "${TMPDIR:-/tmp}/gaia.XXXXXXXXX")
|
||||
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
|
||||
docker volume rm -f wasmd_data
|
||||
|
@ -2,7 +2,8 @@
|
||||
set -o errexit -o nounset -o pipefail
|
||||
command -v shellcheck > /dev/null && shellcheck "$0"
|
||||
|
||||
CONTAINER_NAME="wasmd"
|
||||
SCRIPT_DIR="$(realpath "$(dirname "$0")")"
|
||||
source "$SCRIPT_DIR"/env
|
||||
|
||||
echo "Killing Cosmos container..."
|
||||
docker container kill "$CONTAINER_NAME"
|
||||
|
5
scripts/env
Normal file
5
scripts/env
Normal file
@ -0,0 +1,5 @@
|
||||
# Choose from https://hub.docker.com/r/cosmwasm/wasmd/tags
|
||||
REPOSITORY="cosmwasm/wasmd-demo"
|
||||
VERSION="latest"
|
||||
|
||||
BLOCKCHAIN_CONTAINER_NAME="wasmd"
|
Loading…
x
Reference in New Issue
Block a user