https://github.com/aqidd/fabric-test-network-extended
A collection of scripts that will help you extend you Fabric 2 Test Network
https://github.com/aqidd/fabric-test-network-extended
blockchain caliper fabric
Last synced: 5 months ago
JSON representation
A collection of scripts that will help you extend you Fabric 2 Test Network
- Host: GitHub
- URL: https://github.com/aqidd/fabric-test-network-extended
- Owner: aqidd
- Created: 2020-06-22T11:00:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T11:27:55.000Z (over 2 years ago)
- Last Synced: 2023-03-25T23:07:00.150Z (about 2 years ago)
- Topics: blockchain, caliper, fabric
- Language: Shell
- Homepage:
- Size: 534 KB
- Stars: 4
- Watchers: 0
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Test Network Extended
## What is this
A collection of shell script that helps extending Test Network as well as executing benchmarking using Hyperledger Caliper## What does it do
It will extend your Test Network to 3 orderer (orderer.example.com, orderer1.example.com, orderer2.example.com) and 3 peers each organization (peer0, peer1, peer2). It will also join those nodes to channel and install the default chaincode (fabcar) to the nodes.## How to use
### Updating .env
First you have to update .env files and make sure they point to the correct values. The important variables are `CHANNEL_NAME`, `FABRIC_SAMPLES_DIR` (where you clone fabric samples) and `TEST_NETWORK_EXTENDED_DIR` (where you clone this repository)### Updating envVar.sh
envVar.sh contains helper variables and functions. It should work after you update `.env` file but please check the content of this files to make sure that everything points to the correct path/value### Running the script
To run everything all at once, just execute `./setup-fabric-extended.sh`. It will download all the necessary Fabric components, binary and extend the test network.OR, if you already setup your test network + create channel + deploy fabcar chaincode, just execute `./extend-network.sh` to extend it.
When you want to decompose the extended peers & orderer, simpy execute `./decompose-extension.sh`
### Benchmarking with Hyperledger Caliper
`./setup.caliper.sh` - will setup all the necessary scripts for Hyperledger Caliper`./execute-caliper.sh` - will run Caliper benchmark