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.

16 lines
352 B

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