tendermint/test/p2p/client.sh

19 lines
437 B
Bash
Raw Normal View History

2016-07-24 11:08:47 -07:00
#! /bin/bash
set -eu
DOCKER_IMAGE=$1
NETWORK_NAME=$2
CMD=$3
echo "starting test client container with CMD=$CMD"
2016-07-24 11:08:47 -07:00
# run the test container on the local network
docker run -t \
-v $GOPATH/src/github.com/tendermint/tendermint/test/p2p/:/go/src/github.com/tendermint/tendermint/test/p2p \
--net=$NETWORK_NAME \
--ip=$(test/p2p/ip.sh "-1") \
2016-07-24 11:08:47 -07:00
--name test_container \
--entrypoint bash \
$DOCKER_IMAGE $CMD
docker rm -vf test_container