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.

19 lines
442 B

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