Hyperledger Fabric v2.0 came with many features and “External Chaincode Launcher” is one of them. Prior to fabric v2.0, peer node used a specific language like golang to generate a chaincode container image from the chaincode source code. Prior releases of Fabric required peers to have access to a Docker daemon in order to build and launch chaincode — something that may not be desirable in production environments due to the privileges required by the peer process.

Traditionally, chaincodes are launched by the peer, and then connect back to the peer. It is now possible to run chaincode as an…


Introduction

In this tutorial we will be setting up Hyperledger Fabric network from scratch without using any magical scripts that we use in test-network or first-network. Those scripts work great but they abstract many things that one needs to know in orderer to gain expertise in HLF.

We will be using Fabric version 2.2.3 LTS. If this is your first time with Fabric version 2+ then, I will highly recommend to install the prerequisites first before proceeding any further .

You can find the code used in this tutorial in my github repo

Once you have cloned or downloaded the repository…


Please note that this tutorial is more of a “cheat-sheet” rather than a walkthrough of all the commands!

Installing the prerequisites

We need to install:

  • Docker
  • Docker-Compose
  • Golang

Installing Docker

Please paste the commands below in your terminal

sudo apt updatesudo apt install apt-transport-https ca-certificates curl software-properties-commoncurl -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 bionic stable"sudo apt updatesudo apt install docker-ce

The above commands will install docker.

Executing the Docker Command Without Sudo (Optional):

sudo usermod -aG docker ${USER}su - ${USER}sudo usermod -aG docker username

Installing Docker-compose

sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-composesudo…

Saif

Blockchain developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store