Put configuration in one file, use auto-built wasm-demo:latest tag

This commit is contained in:
Ethan Frey 2020-01-30 19:19:54 +01:00
parent 065b1883ed
commit e94f32c765
4 changed files with 11 additions and 10 deletions

View File

@ -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"

View File

@ -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

View File

@ -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
View 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"