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.

21 lines
426 B

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