You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
477 B

  1. #! /bin/bash
  2. set -eu
  3. DOCKER_IMAGE=$1
  4. NETWORK_NAME=$2
  5. ID=$3
  6. set +u
  7. SEEDS=$4
  8. set -u
  9. if [[ "$SEEDS" != "" ]]; then
  10. SEEDS=" --seeds $SEEDS "
  11. fi
  12. echo "starting tendermint peer ID=$ID"
  13. # start tendermint container on the network
  14. docker run -d \
  15. --net=$NETWORK_NAME \
  16. --ip=$(test/p2p/ip.sh $ID) \
  17. --name local_testnet_$ID \
  18. --entrypoint tendermint \
  19. -e TMROOT=/go/src/github.com/tendermint/tendermint/test/p2p/data/mach$ID/core \
  20. $DOCKER_IMAGE node $SEEDS --proxy_app=dummy