[Guide] How To Install Hyperledger Sawtooth On Ubuntu 16.04?

hyperledger-sawtooth
hyperledger

(Varun Raj) #1

In order to setup Hyperledger Sawtooth in an ubuntu 16.04 instance you need the following,

  • Docker
  • Docker Compose
  • NodeJS
  • GoLang
  • Docker Images for Hyperledger Sawtooth

Docker

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
sudo apt-get install -y docker-ce
sudo usermod -aG docker ${USER}
su - ${USER}
sudo usermod -aG docker <username> //Replace <username> with your system username

Docker Compose

sudo apt-get install build-essential
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

NodeJS

curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install nodejs

Docker Images for Hyperledger Sawtooth

docker pull hyperledger/sawtooth-settings-tp
docker pull hyperledger/sawtooth-validator
docker pull hyperledger/sawtooth-rest-api
docker pull hyperledger/sawtooth-all

Hyperledger Sawtooth Series - 1. The Basics