โ๏ธLaunch Network
We will try to understand the Test Network in-depth.
Test Network will be having below steps to be performed in sequence.
Certificate Generation - CryptoGen Tool/Fabric CA
Start the docker network - HLF Test Network
Create a channel - Orderer will create it. (My channel)
Peers will join the channel.
Anchor peer update
Chaincode Deployment: It has a lifecycle (Chaincode Lifecycle)
Packaging
Install
Approve
Commit
Init the ledger
Invoke or Query Transactions
Note: Please Run these before step 1
cd Desktop/hyperledger/fabric-samples/test-network/
./network.sh down
docker ps -aq
docker volume ls
If there are containers then run :
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
docker volume prune
Test Network Execution:
Certificate Generation Using CryptoGen Tool:
In the test network folder do the following:
Set the Config Path
export PATH=${PWD}/../bin:${PWD}:$PATH
Create the Certificates for Org1
cryptogen generate --config=./organizations/cryptogen/crypto-config-org1.yaml --output="organizations"
Create the certificates for Org2
cryptogen generate --config=./organizations/cryptogen/crypto-config-org2.yaml --output="organizations"
Create Certificates for OrdererOrg
cryptogen generate --config=./organizations/cryptogen/crypto-config-orderer.yaml --output="organizations"
Start Docker Network
Start the docker containers
export COMPOSE_PROJECT_NAME=net
export DOCKER_SOCK=/var/run/docker.sock
IMAGE_TAG=latest docker-compose -f compose/compose-test-net.yaml -f compose/docker/docker-compose-test-net.yaml up
Open a new Terminal
Check the docker containers running status
Last updated
Was this helpful?