You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
727 B

  1. #! /bin/bash
  2. set -eu
  3. DOCKER_IMAGE=$1
  4. NETWORK_NAME=$2
  5. ID=$3
  6. APP_PROXY=$4
  7. set +u
  8. NODE_FLAGS=$5
  9. set -u
  10. set +eu
  11. echo "starting tendermint peer ID=$ID"
  12. # start tendermint container on the network
  13. # NOTE: $NODE_FLAGS should be unescaped (no quotes). otherwise it will be
  14. # treated as one flag.
  15. set -u
  16. docker run -d \
  17. --net="$NETWORK_NAME" \
  18. --ip=$(test/p2p/ip.sh "$ID") \
  19. --name "local_testnet_$ID" \
  20. --entrypoint tendermint \
  21. -e TMHOME="/go/src/github.com/tendermint/tendermint/test/p2p/data/mach$ID/core" \
  22. --log-driver=syslog \
  23. --log-opt syslog-address=udp://127.0.0.1:5514 \
  24. --log-opt syslog-facility=daemon \
  25. --log-opt tag="{{.Name}}" \
  26. "$DOCKER_IMAGE" node $NODE_FLAGS --log_level=debug --proxy_app="$APP_PROXY"