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
437 B

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