๐งชInstallation & Test
Here we are going to download fabric samples, binaries and docker images using shell scripts.
Download Fabric Network
Determine a location (mostly on the Desktop) on your machine where you want to place the fabric-samples repository and enter that directory in a terminal window. The command that follows will perform the following steps:
If needed, clone the hyperledger/fabric-samples repository
Check out the appropriate version tag
Install the Hyperledger Fabric platform-specific binaries and config files for the version specified into the /bin and /config directories of fabric-samples
Download the Hyperledger Fabric docker images for the version specified
Once you are ready, and in the directory into which you will install the Fabric Samples and binaries, go ahead and execute the command to pull down the binaries and images.
Let's Create a new folder on the Desktop:
Download samples, binaries and docker images:
The command above downloads and executes a bash script that will download and extract all of the platform-specific binaries you will need to set up your network and place them into the cloned repo you created above. It retrieves the following platform-specific binaries:
configtxgen
,
configtxlator
,
cryptogen
,
discover
,
idemixgen
orderer
,
peer
,
fabric-ca-client
,
fabric-ca-server
and places them in the bin
sub-directory of the current working directory.
Test Fabric Network
We need to test our sample test network to make sure everything is working correctly.
Let's first go inside the test-network directory.
Here we are going to use .network.sh
shell script, which we help us in starting the network.
Now Let's up the test-network:
You may check out running containers with below command.
We will create a channel after, starting a network in step 2.
Deploy a sample chaincode for testing.
Finally down the network.
Last updated