From 5dd6fbcd04026cbc9eeda016c9a0a0f423eab882 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Thu, 23 Nov 2017 18:39:00 -0600 Subject: [PATCH] rewrite ethermint section --- docker/README.rst | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/docker/README.rst b/docker/README.rst index f2c48448..951fa4b7 100644 --- a/docker/README.rst +++ b/docker/README.rst @@ -43,31 +43,29 @@ own Docker images with the tendermint application. Ethermint --------- -Build the container: Copy the ``ethermint`` binary and the setup folder -to the ``ethermint`` folder. +The application configuration will be stored at ``/ethermint``. + +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 -files required for initializing ethermint (the files in the source -``setup`` folder) are under ``/setup``. - -Initialize ethermint configuration: +Start ethermint as a validator node: This is a two-step process: \* Run the +tendermint container and expose the ports that allow clients to connect. \* Run +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 +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 -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. +Building images by yourself: -:: - - docker run --rm -d -v ethermintdata:/ethermint ethermint --tendermint_addr tcp://172.17.0.3:46657 - docker run --rm -d -v data:/tendermint -p 46656-46657:46656-46657 tendermint node --proxy_app tcp://172.17.0.2:46658 +`This folder `__ +contains Docker container descriptions. Using this folder you can build your +own Docker images with the ethermint application.