JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Hyperledger Fabric
Hyperledger Fabric
Prerequisite and Installation
More
Share
Explore
Prerequisite and Installation
Prerequisite and Installation
https://pastebin.com/4iwbUZ3z
Operating systems: Ubuntu Linux 14.04 / 16.04/18.04 LTS (both 64-bit), or macOS
cURL tool: The latest version
git
Docker engine: Version 17.06.2-ce or greater
Docker-compose: Version 1.14 or greater
Go: Version 1.13.x
Node: Version 10.21(Node.js version 10 is supported from 10.15.3 and higher)
npm: Version 6.14.4
Python: 2.7.x
Installation
sudo apt-get install curl
sudo apt-get install nodejs
sudo apt-get install npm
sudo apt-get install python
Install and Upgrade Docker & Docker Compose
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64]
https://download.docker.com/linux/ubuntu
$(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version ーーーー> 1.26
sudo apt-get upgrade
Run hello-world docker image
docker run hello-world
If you are getting permission error, follow the below steps
sudo groupadd docker
sudo usermod -aG docker ${USER}
Open new command line or restart same one
Docker run hello-world
If above image run successfully, we are good to go for next step
Go Lang Installation
wget
https://dl.google.com/go/go1.13.12.linux-amd64.tar.gz
tar -xzvf go1.13.12.linux-amd64.tar.gz
sudo mv go/ /usr/local
Add following into bash rc file
export GOPATH=/usr/local/go
export PATH=$PATH:$GOPATH/bin
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt-get install -y nodejs
Verify All Versions
curl -V
npm -v
docker version
docker-compose version
go version
python -V
node -v
Install Fabric-Sample, Binaries & Docker Images
Latest Images
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.1 1.4.7
Version Specific
curl
-
sSL https:
//
bit
.
ly
/
2ysbOFE
|
bash
-
s
--
<
fabric_version
>
<
fabric
-
ca_version
>
<
thirdparty_version
>
Important Note:
Add following binary path to bashrc file
export PATH=$PATH:/home/ubuntu/fabric-samples/bin
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.