|
@ -13,16 +13,30 @@ if [[ "$SEEDS" != "" ]]; then |
|
|
SEEDS=" --seeds $SEEDS " |
|
|
SEEDS=" --seeds $SEEDS " |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
set +eu |
|
|
|
|
|
|
|
|
echo "starting tendermint peer ID=$ID" |
|
|
echo "starting tendermint peer ID=$ID" |
|
|
# start tendermint container on the network |
|
|
# start tendermint container on the network |
|
|
docker run -d \ |
|
|
|
|
|
--net=$NETWORK_NAME \ |
|
|
|
|
|
--ip=$(test/p2p/ip.sh $ID) \ |
|
|
|
|
|
--name local_testnet_$ID \ |
|
|
|
|
|
--entrypoint tendermint \ |
|
|
|
|
|
-e TMROOT=/go/src/github.com/tendermint/tendermint/test/p2p/data/mach$ID/core \ |
|
|
|
|
|
--log-driver=syslog \ |
|
|
|
|
|
--log-opt syslog-address=udp://127.0.0.1:5514 \ |
|
|
|
|
|
--log-opt syslog-facility=daemon \ |
|
|
|
|
|
--log-opt tag="{{.Name}}" \ |
|
|
|
|
|
$DOCKER_IMAGE node $SEEDS --proxy_app=$APP_PROXY |
|
|
|
|
|
|
|
|
if [[ "$CIRCLECI" == true ]]; then |
|
|
|
|
|
set -u |
|
|
|
|
|
docker run -d \ |
|
|
|
|
|
--net=$NETWORK_NAME \ |
|
|
|
|
|
--ip=$(test/p2p/ip.sh $ID) \ |
|
|
|
|
|
--name local_testnet_$ID \ |
|
|
|
|
|
--entrypoint tendermint \ |
|
|
|
|
|
-e TMROOT=/go/src/github.com/tendermint/tendermint/test/p2p/data/mach$ID/core \ |
|
|
|
|
|
--log-driver=syslog \ |
|
|
|
|
|
--log-opt syslog-address=udp://127.0.0.1:5514 \ |
|
|
|
|
|
--log-opt syslog-facility=daemon \ |
|
|
|
|
|
--log-opt tag="{{.Name}}" \ |
|
|
|
|
|
$DOCKER_IMAGE node $SEEDS --proxy_app=$APP_PROXY |
|
|
|
|
|
else |
|
|
|
|
|
set -u |
|
|
|
|
|
docker run -d \ |
|
|
|
|
|
--net=$NETWORK_NAME \ |
|
|
|
|
|
--ip=$(test/p2p/ip.sh $ID) \ |
|
|
|
|
|
--name local_testnet_$ID \ |
|
|
|
|
|
--entrypoint tendermint \ |
|
|
|
|
|
-e TMROOT=/go/src/github.com/tendermint/tendermint/test/p2p/data/mach$ID/core \ |
|
|
|
|
|
$DOCKER_IMAGE node $SEEDS --proxy_app=$APP_PROXY |
|
|
|
|
|
fi |