Create a folder to store the dockerfile
$ mkdir my-indy-node
Change in to folder
$ cd my-indy-node
Download, copy or create the Dockerfile in the folder
Build docker image and tag it with 'my-indy-node'
$ docker build -t my-indy-node .
Start a named docker container with an interactive shell
$ docker run -it --name my-indy-node my-indy-node
You will need 8 terminal windows.
- 1 terminal for running commands and later interacting with the cluster via indy cli.
- 4 terminals for running the 4 nodes (Node1, Node2, Node2 and Node4).
- 3 terminals for running the 3 agents (Faber, Acme and Thrift).
These notes are a summary of what is listed here.
Please refer to the original page for more info.
Create terminal (on the host)
$ docker exec -it my-indy-node bash
Create nodes and generate initial transactions (in the terminal)
# generate_indy_pool_transactions --nodes 4 --clients 5 --nodeNum 1 2 3 4
Create terminal (on the host)
$ docker exec -it my-indy-node bash
Start Node (in the terminal)
# start_indy_node Node1 9701 9702
Create terminal (on the host)
$ docker exec -it my-indy-node bash
Start node (in the terminal)
# start_indy_node Node2 9703 9704
Create terminal (on the host)
$ docker exec -it my-indy-node bash
Start node (in the terminal)
# start_indy_node Node3 9705 9706
Create terminal (on the host)
$ docker exec -it my-indy-node bash
Start node (in the terminal)
# start_indy_node Node4 9707 9708
# indy
# new key with seed 000000000000000000000000Steward1
# connect sandbox
# send NYM dest=ULtgFQJe6bjiFbs7ke3NJD role=TRUST_ANCHOR verkey=~5kh3FB4H3NKq7tUDqeqHc1
# send NYM dest=CzkavE58zgX7rUMrzSinLr role=TRUST_ANCHOR verkey=~WjXEvZ9xj4Tz9sLtzf7HVP
# send NYM dest=H2aKRiDeq8aLZSydQMDbtf role=TRUST_ANCHOR verkey=~3sphzTb2itL2mwSeJ1Ji28
# new key with seed Faber000000000000000000000000000
# send ATTRIB dest=ULtgFQJe6bjiFbs7ke3NJD raw={"endpoint": {"ha": "127.0.0.1:5555", "pubkey": "5hmMA64DDQz5NzGJNVtRzNwpkZxktNQds21q3Wxxa62z"}}
# new key with seed Acme0000000000000000000000000000
# send ATTRIB dest=CzkavE58zgX7rUMrzSinLr raw={"endpoint": {"ha": "127.0.0.1:6666", "pubkey": "C5eqjU7NMVMGGfGfx2ubvX5H9X346bQt5qeziVAo3naQ"}}
# new key with seed Thrift00000000000000000000000000
# send ATTRIB dest=H2aKRiDeq8aLZSydQMDbtf raw={"endpoint": {"ha": "127.0.0.1:7777", "pubkey": "AGBjYvyM3SFnoiDGAEzkSLHvqyzVkXeMZfKDvdpEsC2x"}}
Create terminal (on the host)
$ docker exec -it my-indy-node bash
Start agent (in the terminal)
# python3 /usr/local/lib/python3.5/dist-packages/indy_client/test/agent/faber.py --port 5555
Create terminal (on the host)
$ docker exec -it my-indy-node bash
Start agent (in the terminal)
# python3 /usr/local/lib/python3.5/dist-packages/indy_client/test/agent/acme.py --port 6666
Create terminal (on the host)
$ docker exec -it my-indy-node bash
Start agent (in the terminal)
$ python3 /usr/local/lib/python3.5/dist-packages/indy_client/test/agent/thrift.py --port 7777
You should now be ready to run through the walkthrough in Terminal 1 with all other terminals logging their output.
On line 12 you need:
to solve this issue:
https://stackoverflow.com/questions/38002543/apt-get-update-returned-a-non-zero-code-100