@@ -3,8 +3,7 @@ Deploy a Testnet
3
3
4
4
Now that we've seen how ABCI works, and even played with a few
5
5
applications on a single validator node, it's time to deploy a test
6
- network to four validator nodes. For this deployment, we'll use the
7
- ``basecoin `` application.
6
+ network to four validator nodes.
8
7
9
8
Manual Deployments
10
9
------------------
@@ -24,67 +23,46 @@ Here are the steps to setting up a testnet manually:
24
23
``tendermint init ``
25
24
4) Compile a list of public keys for each validator into a
26
25
``genesis.json `` file and replace the existing file with it.
27
- 5) Run ``tendermint node --p2p.persistent_peers=< peer addresses > `` on each node,
26
+ 5) Run ``tendermint node --proxy_app=kvstore -- p2p.persistent_peers=< peer addresses > `` on each node,
28
27
where ``< peer addresses > `` is a comma separated list of the IP:PORT
29
28
combination for each node. The default port for Tendermint is
30
29
``46656 ``. Thus, if the IP addresses of your nodes were
31
30
``192.168.0.1, 192.168.0.2, 192.168.0.3, 192.168.0.4 ``, the command
32
31
would look like:
33
- ``
tendermint node --p2p.persistent_peers=96663a3dd0d7b9d17d4c8211b191af259621c693@192.168.0.1:46656, [email protected] :46656, [email protected] :46656, [email protected] :46656 ``.
32
+ ``
tendermint node --proxy_app=kvstore -- p2p.persistent_peers=96663a3dd0d7b9d17d4c8211b191af259621c693@192.168.0.1:46656, [email protected] :46656, [email protected] :46656, [email protected] :46656 ``.
34
33
35
34
After a few seconds, all the nodes should connect to each other and start
36
35
making blocks! For more information, see the Tendermint Networks section
37
36
of `the guide to using Tendermint <using-tendermint.html >`__.
38
37
39
- Automated Deployments
40
- ---------------------
41
-
42
38
While the manual deployment is easy enough, an automated deployment is
43
39
usually quicker. The below examples show different tools that can be used
44
40
for automated deployments.
45
41
46
- Automated Deployment using Kubernetes
47
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48
-
49
- The `mintnet-kubernetes tool <https://github.com/tendermint/tools/tree/master/mintnet-kubernetes >`__
50
- allows automating the deployment of a Tendermint network on an already
51
- provisioned Kubernetes cluster. For simple provisioning of a Kubernetes
52
- cluster, check out the `Google Cloud Platform <https://cloud.google.com/ >`__.
53
-
54
- Automated Deployment using Terraform and Ansible
55
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56
-
57
- The `terraform-digitalocean tool <https://github.com/tendermint/tools/tree/master/terraform-digitalocean >`__
58
- allows creating a set of servers on the DigitalOcean cloud.
59
-
60
- The `ansible playbooks <https://github.com/tendermint/tools/tree/master/ansible >`__
61
- allow creating and managing a ``basecoin `` or ``ethermint `` testnet on provisioned servers.
42
+ Automated Deployments
43
+ ---------------------
62
44
63
- Package Deployment on Linux for developers
64
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45
+ Local
46
+ ^^^^^
65
47
66
- The ``tendermint `` and ``basecoin `` applications can be installed from RPM or DEB packages on
67
- Linux machines for development purposes. The packages are configured to be validators on the
68
- one-node network that the machine represents. The services are not started after installation,
69
- this way giving an opportunity to reconfigure the applications before starting.
48
+ With ``docker `` installed, run the command:
70
49
71
- The Ansible playbooks in the previous section use this repository to install ``basecoin ``.
72
- After installation, additional steps are executed to make sure that the multi-node testnet has
73
- the right configuration before start.
50
+ ::
74
51
75
- Install from the CentOS/RedHat repository:
52
+ make localnet-start
76
53
77
- ::
54
+ from the root of the tendermint repository. This will spin up a 4-node local testnet.
78
55
79
- rpm --import https://tendermint-packages.interblock.io/centos/7/os/x86_64/RPM-GPG-KEY-Tendermint
80
- wget -O /etc/yum.repos.d/tendermint.repo https://tendermint-packages.interblock.io/centos/7/os/x86_64/tendermint.repo
81
- yum install basecoin
56
+ Cloud Deployment using Kubernetes
57
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
82
58
83
- Install from the Debian/Ubuntu repository:
59
+ The `mintnet-kubernetes tool <https://github.com/tendermint/tools/tree/master/mintnet-kubernetes >`__
60
+ allows automating the deployment of a Tendermint network on an already
61
+ provisioned Kubernetes cluster. For simple provisioning of a Kubernetes
62
+ cluster, check out the `Google Cloud Platform <https://cloud.google.com/ >`__.
84
63
85
- ::
64
+ Cloud Deployment using Terraform and Ansible
65
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
86
66
87
- wget -O - https://tendermint-packages.interblock.io/centos/7/os/x86_64/RPM-GPG-KEY-Tendermint | apt-key add -
88
- wget -O /etc/apt/sources.list.d/tendermint.list https://tendermint-packages.interblock.io/debian/tendermint.list
89
- apt-get update && apt-get install basecoin
67
+ See the `next section <./terraform-and-ansible.html >`__ for details.
90
68
0 commit comments