-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from hyperledger/develop
Adding documentation, merge develop into master
- Loading branch information
Showing
2 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# How to run network of N iroha nodes without docker swarm? | ||
|
||
1. Make sure you have the latest `iroha-docker` image: | ||
|
||
```` | ||
docker pull hyperledger/iroha-docker | ||
```` | ||
|
||
2. On each node create ***correct*** `sumeragi.json`: | ||
|
||
- double check all ip addresses | ||
- double check all public keys | ||
|
||
Save it somewhere (we assume it is in `/tmp/sumeragi.json` on each node). | ||
|
||
3. Run `iroha-docker` on each node: | ||
|
||
```bash | ||
# beware of copy-pasting: change /tmp/sumeragi.json to location of this file in host OS | ||
docker run \ | ||
-d \ | ||
-p 1204:1204 \ | ||
-it \ | ||
-v /tmp/sumeragi.json:/usr/local/iroha/config/sumeragi.json \ | ||
hyperledger/iroha-docker | ||
``` | ||
|
||
```bash | ||
# semantics: | ||
-d -- detached (from terminal) | ||
-p 1204:1204 -- forward port: host 1204 <-> 1204 container | ||
docker proxy will be listening on 0.0.0.0:1204 and | ||
it will be forwarding all traffic to the container | ||
-it -- not necessary but help us to get rid of some errors | ||
i - keep STDIN open even if not attached | ||
t - allocate TTY | ||
-v /tmp/sumeragi.json:/usr/local/iroha/config/sumeragi.json | ||
-- mount config from host to container | ||
(semantics: -v from:to, only absolute paths) | ||
hyperledger/iroha-docker -- image tag | ||
``` | ||
| ||
In the end, you have a network of N nodes, you can communicate with them via host IPs. Each node from this moment runs iroha as if you use it without docker. | ||