rewrite ethermint section

This commit is contained in:
Anton Kaliaev 2017-11-23 18:39:00 -06:00
parent 5c74dd7f5b
commit 5dd6fbcd04
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with 17 additions and 19 deletions

View File

@ -43,31 +43,29 @@ own Docker images with the tendermint application.
Ethermint Ethermint
--------- ---------
Build the container: Copy the ``ethermint`` binary and the setup folder The application configuration will be stored at ``/ethermint``.
to the ``ethermint`` folder.
Initialize ethermint:
:: ::
docker build -t ethermint ethermint mkdir /ethermintdata
wget -O /ethermintdata/genesis.json https://github.com/tendermint/ethermint/raw/master/setup/genesis.json
docker run --rm -v /ethermintdata:/ethermint tendermint/ethermint ethermint --datadir /ethermint init /ethermint/genesis.json
The application configuration will be stored at ``/ethermint``. The Start ethermint as a validator node: This is a two-step process: \* Run the
files required for initializing ethermint (the files in the source tendermint container and expose the ports that allow clients to connect. \* Run
``setup`` folder) are under ``/setup``. the ethermint container. You will have to define where tendermint runs as the
ethermint binary connects to it explicitly. The --proxy\_app should contain the
Initialize ethermint configuration: ethermint application's IP address and port.
:: ::
docker run --rm -v ethermintdata:/ethermint ethermint init /setup/genesis.json docker run --rm -d -v /tmdata:/tendermint tendermint/tendermint node --proxy_app=tcp://172.17.0.3:46658
docker run --rm -d -v /ethermintdata:/ethermint tendermint/ethermint ethermint --tendermint_addr tcp://172.17.0.2:46657
Start ethermint as a validator node: This is a two-step process: \* Run Building images by yourself:
the ethermint container. You will have to define where tendermint runs
as the ethermint binary connects to it explicitly. \* Run the tendermint
container and expose the ports that allow clients to connect. The
--proxy\_app should contain the ethermint application's IP address and
port.
:: `This folder <https://github.com/tendermint/ethermint/blob/master/scripts/docker>`__
contains Docker container descriptions. Using this folder you can build your
docker run --rm -d -v ethermintdata:/ethermint ethermint --tendermint_addr tcp://172.17.0.3:46657 own Docker images with the ethermint application.
docker run --rm -d -v data:/tendermint -p 46656-46657:46656-46657 tendermint node --proxy_app tcp://172.17.0.2:46658