Skip to content

Latest commit

 

History

History

installation

Fabric 2.0

September 2021

Prerequisites

Ubuntu 18 or higher
Docker version 17.06.2-ce or greater is required.
Go version 1.12.x is required.

Installing Prerequisites

1. Change permissions

cd installation  
chmod -R 755 ./*  

2. Installing Docker, GoLang and NodeJS

This will install the minimum version required.

./install-prereqs.sh  
source ~/.profile  
source ~/.bashrc 

3. Validate

Make sure everything went well. You might need to restart the terminal to reflect the path changes.

sudo ./validate-prereqs.sh

4. Installing Govendor

sudo ./install-gotools.sh

Installing Fabric 2.0

1. Install the Fabric binaries & images

sudo curl -sSL http://bit.ly/2ysbOFE -o bootstrap.sh
chmod 777 ./bootstrap.sh
./bootstrap.sh 2.1.0 1.4.6 -s
sudo cp ./bin/*    /usr/local/bin

2. Validate

sudo ./validate-fabric.sh 

3. Install Go Fabric Shim package

This is required for developing Chaincodes

go get github.com/hyperledger/fabric-chaincode-go/shim
go get github.com/hyperledger/fabric-chaincode-go/shimtest