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.

22 lines
451 B

  1. #! /bin/bash
  2. set -eu
  3. DOCKER_IMAGE=$1
  4. NETWORK_NAME=$2
  5. N=$3
  6. APP_PROXY=$4
  7. cd $GOPATH/src/github.com/tendermint/tendermint
  8. # create docker network
  9. docker network create --driver bridge --subnet 172.57.0.0/16 $NETWORK_NAME
  10. seeds="$(test/p2p/ip.sh 1):46656"
  11. for i in `seq 2 $N`; do
  12. seeds="$seeds,$(test/p2p/ip.sh $i):46656"
  13. done
  14. echo "Seeds: $seeds"
  15. for i in `seq 1 $N`; do
  16. bash test/p2p/peer.sh $DOCKER_IMAGE $NETWORK_NAME $i $APP_PROXY $seeds
  17. done