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.

71 lines
2.3 KiB

  1. Using Docker
  2. ============
  3. It is assumed that you have already `setup docker <https://docs.docker.com/engine/installation/>`__.
  4. Tendermint
  5. ----------
  6. The application configuration and data will be stored at ``/tendermint`` in the
  7. container. This directory will also be exposed as a volume. The ports 46656 and
  8. 46657 will be open for ABCI applications to connect.
  9. Initialize tendermint:
  10. ::
  11. mkdir /tmdata
  12. docker run --rm -v /tmdata:/tendermint tendermint/tendermint init
  13. Change ``/tmdata`` folder to any destination where you want to store Tendermint
  14. configuration and data.
  15. Tendermint docker image is stored on `docker hub <https://hub.docker.com/r/tendermint/tendermint/>`__.
  16. Get the public key of tendermint:
  17. ::
  18. docker run --rm -v /tmdata:/tendermint tendermint/tendermint show_validator
  19. Run the docker tendermint application with:
  20. ::
  21. docker run --rm -d -v /tmdata:/tendermint tendermint/tendermint node
  22. Building images by yourself:
  23. `This folder <https://github.com/tendermint/tendermint/tree/master/DOCKER>`__
  24. contains Docker container descriptions. Using this folder you can build your
  25. own Docker images with the tendermint application.
  26. Ethermint
  27. ---------
  28. The application configuration will be stored at ``/ethermint``.
  29. Initialize ethermint:
  30. ::
  31. mkdir /ethermintdata
  32. wget -O /ethermintdata/genesis.json https://github.com/tendermint/ethermint/raw/master/setup/genesis.json
  33. docker run --rm -v /ethermintdata:/ethermint tendermint/ethermint ethermint --datadir /ethermint init /ethermint/genesis.json
  34. Start ethermint as a validator node: This is a two-step process: \* Run the
  35. tendermint container and expose the ports that allow clients to connect. \* Run
  36. the ethermint container. You will have to define where tendermint runs as the
  37. ethermint binary connects to it explicitly. The --proxy\_app should contain the
  38. ethermint application's IP address and port.
  39. ::
  40. docker run --rm -d -v /tmdata:/tendermint tendermint/tendermint node --proxy_app=tcp://172.17.0.3:46658
  41. docker run --rm -d -v /ethermintdata:/ethermint tendermint/ethermint ethermint --tendermint_addr tcp://172.17.0.2:46657
  42. Building images by yourself:
  43. `This folder <https://github.com/tendermint/ethermint/blob/master/scripts/docker>`__
  44. contains Docker container descriptions. Using this folder you can build your
  45. own Docker images with the ethermint application.