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.

18 lines
418 B

  1. #! /bin/bash
  2. set -eu
  3. DOCKER_IMAGE=$1
  4. NETWORK_NAME=$2
  5. ID=$3
  6. CMD=$4
  7. echo "starting test client container with CMD=$CMD"
  8. # run the test container on the local network
  9. docker run -t \
  10. -v $GOPATH/src/github.com/tendermint/tendermint/test/p2p/:/go/src/github.com/tendermint/tendermint/test/p2p \
  11. --net=$NETWORK_NAME \
  12. --ip=$(test/p2p/ip.sh "-1") \
  13. --name test_container_$ID \
  14. --entrypoint bash \
  15. $DOCKER_IMAGE $CMD