This tutorial is the third part of the Fabric Tutorial series. It mainly introduces the implementation of a Fabric network based on Docker in a multi-machine environment. This chapter covers the Fabric stack: CouchDB state database, Kafka sorting, TLS connection encryption.
The tutorial directory structure is as follows:
- Introduction to the
- Deploy minimal Fabric networks based on Docker
- Deploy multiple fabric networks based on Docker
- One-click DEPLOYMENT of the K8S cluster
- One-click Fabric network deployment based on helm
- Domestic network under the network set up adjustment details
- Summary on pit
This tutorial is operated on ali Cloud overseas server. Due to domestic network problems, docker and image are difficult to download. The following sixth chapter introduces details of script adjustment under domestic network.
The following table lists the host system versions
[root@test ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@test ~]# uname -a
Linux test3.10.0-957.21.3. El7. X86_64#1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Copy the code
The fabric network topology is as follows:
A key to start
cd ~
git clone https://github.com/jiang11958/fabric-kafka
cd ~/fabric-kafka
sh run.sh start "{' hosts' : {' host1: {' name ':' host1 ', 'IP' : '172.21.28.226', 'port' : 22, 'user' : 'root', 'pass' : 'password'}, 'host2: {' name' : 'the host 2 ', 'IP' : '172.21.28.225' and 'port' : 22, 'user' : 'root', 'pass' : 'password'}, 'host3' : {' name ':' host3 ', 'IP' : '172.21.28.224', 'port' : 2 2,'user':'root','pass':'password'}}}"
Copy the code
One-click start JSON description
{
"hosts": {
"host1": { # the hostname
"name": "host1".# the hostname
"ip": "172.21.28.226".# host IP
"port": 22.# Host SSH port
"user": "root".SSH user name of the host
"pass": "password" SSH password of the host
},
"host2": {
"name": "host2"."ip": "172.21.28.225"."port": 22."user": "root"."pass": "password"
},
"host3": {
"name": "host3"."ip": "172.21.28.224"."port": 22."user": "root"."pass": "password"}}}Copy the code
A key to remove
cd ~/fabric-kafka
sh run.sh stop
Copy the code