mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
20 lines
442 B
Bash
20 lines
442 B
Bash
#! /bin/bash
|
|
set -eu
|
|
|
|
DOCKER_IMAGE=$1
|
|
NETWORK_NAME=$2
|
|
ID=$3
|
|
CMD=$4
|
|
|
|
NAME=test_container_$ID
|
|
|
|
echo "starting test client container with CMD=$CMD"
|
|
# run the test container on the local network
|
|
docker run -t --rm \
|
|
-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") \
|
|
--name "$NAME" \
|
|
--entrypoint bash \
|
|
"$DOCKER_IMAGE" $CMD
|