Which course will fulfil my needs?
Link – 75% discount
[Link]
Link – 50% discount
[Link]
Local Workbench Setup
Setup the virtual machine
Install the workbench components
raj@[Link]
@acloudfan
[Link]
Course Project Repository
[Link]
[Link]
PS: Version will change over a period of time
Course Project Repository
[Link]
Extract the files in a local folder
File is PASSWORD Protected
Password is in Lecture#3
Course Project Repository
Right click on zip file and select extract
<<Double Click>> sometimes does not work on password protected files !!!
Course Project Repository
• Repository updated from time to time
• Re-installation of the tools/binaries may be required for
certain type of changes
• Code in the scripts are subject to change without notice
Workbench tool setup
1 Setup the Virtual Machine
2 Install the software/HLF
1 Setup the Virtual Machine
vagrant up
vagrant ssh
Password: vagrant
cd /vagrant/setup
chmod 755 *.sh
cd /vagrant/setup
chmod 755 *.sh
1. Install sudo ./[Link]
Log out & Log in
docker version
cd /vagrant/setup
2. Install sudo ./[Link]
orderer version
peer version
cd /vagrant/setup
3. Install sudo ./[Link]
fabric-ca-server version
fabric-ca-client version
Workbench Walkthrough
Workbench folders overview
Launch test setup
raj@[Link]
Cleanup of test set ups
@acloudfan
[Link]
Intent is just to give a feel of the workbench!!!
Fabric binaries
Scripts & config files for Fabric on cloud
Managing composer apps
Identity management scripts
Chaincode used for testing
Orderer utilities
Peer utilities
Demonstrate the working
• Launch the multi-org setup
• Cleanup the setup
Intent is just to give a feel | Details of scripts covered in lectures
Orderer Organization Acme Organization
Peer Peer
localhost:7050 Orderer
Solo localhost:7051 localhost:8051
Budget Organization
localhost:7054 Peer
airlinechannel
localhost:9051
Demo: Launch the multi-org setup
1. Setup CA server & setup all of the identities
2. Generate configuration & Launch Orderer
3. Create the airlinechannel and launch peers
• Test the setup
1. Setup CA server & setup all of the identities
fabric-ca cd fabric-ca/bins
bins
./[Link]
[Link]
2. Generate configuration & Launch Orderer
orderer cd orderer/bins
bins
./[Link]
[Link]
3. Create the airlinechannel and launch peers
peers cd peers/bins
bins
./[Link]
[Link]
Test the setup
cd peers/bins
peers
bins
. set-env acme 7050 admin
[Link]
./[Link] install
| instantiate
| query
| invoke
Test the setup
• First time call to instantiate may time out
peers
• Because has to get Runtime Docker images
bins
• Just re-execute the instantiate command if it
fails
[Link]
Cleanup At component level
fabric-ca orderer peers
bins bins bins
[Link] [Link] [Link]
Cleanup At workbench level
setup ./[Link]
[Link] • Cleans up all components
./[Link] all
• Cleans up all components
• Removes fabric binaries
Hands On Exercise
Familiarize with
raj@[Link]
Pause the video on each page – try out the exercise & then proceed @acloudfan
[Link]
Download the PDF version of this exercise from link in resources
1 Create the Multi-Org Fabric setup
2 Test the Multi-Org Fabric setup
3 Clean up the setup
1 Create the Multi-Org Fabric setup
If you have already done that then skip this part ☺
1 Create the Multi-Org Fabric setup
Check out the orderer & peer logs
orderer peers
[Link] [Link]
[Link]
[Link]
2 Test the Multi-Org Fabric setup
. set-env acme 7050 admin
Port for acme-peer1
./[Link] install
./[Link] instantiate
./[Link] query Note down the value of a & b
If you have already installed & instantiated on acme-peer then skip this step ☺
2 Test the Multi-Org Fabric setup
. set-env acme 8050 admin
Port for acme-peer2
./[Link] install
./[Link] query Value of a & b consistent?
./[Link] invoke
./[Link] query Note down the value of a & b
2 Test the Multi-Org Fabric setup
. set-env budget 9050 admin
Port for budget-peer1
./[Link] install
./[Link] query Value of a & b consistent?
./[Link] invoke
./[Link] query Note down the value of a & b
3 Clean up the setup
1. Check out the contents of the following folders
fabric-ca
client
server
2. Clean up the fabric-ca server
cd fabric-ca/bins ./[Link]
3. Check the content of above folder again
3 Clean up the setup
1. Execute the scripts to cleanup the setup at component level