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