Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. sudo apt-get install curl
- 2. sudo apt-get install nodejs
- 3. sudo apt-get install npm
- 4. sudo apt-get install python
- 5. Install and Upgrade Docker & Docker Compose
- 1. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- 2. sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- 3. sudo apt-get update
- 4. apt-cache policy docker-ce
- 5. sudo apt-get install -y docker-ce
- 6. Docker Compose
- 1. 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
- 2. sudo chmod +x /usr/local/bin/docker-compose
- 3. sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
- 4. docker-compose --version ーーーー> 1.26
- 7. sudo apt-get upgrade
- 8. Run hello-world docker image
- 1. docker run hello-world
- 2. If you are getting permission error, follow the below steps
- 1. sudo groupadd docker
- 2. sudo usermod -aG docker ${USER}
- 3. Open new command line or restart same one
- 4. Docker run hello-world
- 5. If above image run successfully, we are good to go for next step
- 6. Go Lang Installation
- 1. wget https://dl.google.com/go/go1.13.12.linux-amd64.tar.gz
- 2. tar -xzvf go1.13.12.linux-amd64.tar.gz
- 3. sudo mv go/ /usr/local
- 4. Add following into bash rc file
- 1. export GOPATH=/usr/local/go
- 2. export PATH=$PATH:$GOPATH/bin
- 5. curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
- 6. sudo apt-get install -y nodejs
- 1. Verify All Versions
- 1. curl -V
- 2. npm -v
- 3. docker version
- 4. docker-compose version
- 5. go version
- 6. python -V
- 7. node -v
- Install Fabric-Sample, Binaries & Docker Images
- 1. Latest Images
- 1. curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.0.0 1.4.7
- 2. Version Specific
- 1. curl -sSL https://bit.ly/2ysbOFE | bash -s -- <fabric_version> <fabric-ca_version> <thirdparty_version>
- 2. curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.0.1 1.4.6 0.4.18
- Important Note:
- Add following binary path to bashrc file
- * export PATH=$PATH:/home/ubuntu/fabric-samples/bin
Add Comment
Please, Sign In to add comment