mirror of
https://github.com/fluencelabs/tendermint
synced 2025-08-01 04:31:57 +00:00
just print node1
This commit is contained in:
@@ -14,14 +14,33 @@ echo "starting tendermint peer ID=$ID"
|
|||||||
# start tendermint container on the network
|
# start tendermint container on the network
|
||||||
# NOTE: $NODE_FLAGS should be unescaped (no quotes). otherwise it will be
|
# NOTE: $NODE_FLAGS should be unescaped (no quotes). otherwise it will be
|
||||||
# treated as one flag.
|
# treated as one flag.
|
||||||
docker run \
|
|
||||||
--net="$NETWORK_NAME" \
|
|
||||||
--ip=$(test/p2p/ip.sh "$ID") \
|
|
||||||
--name "local_testnet_$ID" \
|
if [[ "$ID" == "1" ]]; then
|
||||||
--entrypoint tendermint \
|
docker run \
|
||||||
-e TMHOME="/go/src/github.com/tendermint/tendermint/test/p2p/data/mach$ID/core" \
|
--net="$NETWORK_NAME" \
|
||||||
--log-driver=syslog \
|
--ip=$(test/p2p/ip.sh "$ID") \
|
||||||
--log-opt syslog-address=udp://127.0.0.1:5514 \
|
--name "local_testnet_$ID" \
|
||||||
--log-opt syslog-facility=daemon \
|
--entrypoint tendermint \
|
||||||
--log-opt tag="{{.Name}}" \
|
-e TMHOME="/go/src/github.com/tendermint/tendermint/test/p2p/data/mach$ID/core" \
|
||||||
"$DOCKER_IMAGE" node $NODE_FLAGS --log_level=debug --proxy_app="$APP_PROXY" &
|
-e GOMAXPROCS=1 \
|
||||||
|
--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 $NODE_FLAGS --log_level=debug --proxy_app="$APP_PROXY" &
|
||||||
|
else
|
||||||
|
docker run -d \
|
||||||
|
--net="$NETWORK_NAME" \
|
||||||
|
--ip=$(test/p2p/ip.sh "$ID") \
|
||||||
|
--name "local_testnet_$ID" \
|
||||||
|
--entrypoint tendermint \
|
||||||
|
-e TMHOME="/go/src/github.com/tendermint/tendermint/test/p2p/data/mach$ID/core" \
|
||||||
|
-e GOMAXPROCS=1 \
|
||||||
|
--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 $NODE_FLAGS --log_level=debug --proxy_app="$APP_PROXY"
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user