mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
20 lines
603 B
Bash
Executable File
20 lines
603 B
Bash
Executable File
#!/bin/bash
|
|
set -o errexit -o nounset -o pipefail
|
|
command -v shellcheck >/dev/null && shellcheck "$0"
|
|
|
|
# Find latest patch releases at https://hub.docker.com/r/tendermint/tendermint/tags/
|
|
declare -a TM_VERSIONS
|
|
TM_VERSIONS[33]=v0.33.8
|
|
TM_VERSIONS[34]=v0.34.10
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
for KEY in "${!TM_VERSIONS[@]}"; do
|
|
export TENDERMINT_VERSION="${TM_VERSIONS[$KEY]}"
|
|
export TENDERMINT_PORT="111$KEY"
|
|
export TENDERMINT_NAME="tendermint-$KEY"
|
|
|
|
echo "Starting $TENDERMINT_NAME ($TENDERMINT_VERSION) on port $TENDERMINT_PORT ..."
|
|
"$SCRIPT_DIR/start.sh"
|
|
done
|