Guest User

Untitled

a guest
Sep 26th, 2022
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. 1. sudo apt-get install curl
  2. 2. sudo apt-get install nodejs
  3. 3. sudo apt-get install npm
  4. 4. sudo apt-get install python
  5. 5. Install and Upgrade Docker & Docker Compose
  6. 1. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  7. 2. sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  8. 3. sudo apt-get update
  9. 4. apt-cache policy docker-ce
  10. 5. sudo apt-get install -y docker-ce
  11. 6. Docker Compose
  12. 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
  13. 2. sudo chmod +x /usr/local/bin/docker-compose
  14. 3. sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
  15. 4. docker-compose --version ーーーー> 1.26
  16. 7. sudo apt-get upgrade
  17. 8. Run hello-world docker image
  18. 1. docker run hello-world
  19. 2. If you are getting permission error, follow the below steps
  20. 1. sudo groupadd docker
  21. 2. sudo usermod -aG docker ${USER}
  22. 3. Open new command line or restart same one
  23. 4. Docker run hello-world
  24. 5. If above image run successfully, we are good to go for next step
  25. 6. Go Lang Installation
  26. 1. wget https://dl.google.com/go/go1.13.12.linux-amd64.tar.gz
  27. 2. tar -xzvf go1.13.12.linux-amd64.tar.gz
  28. 3. sudo mv go/ /usr/local
  29. 4. Add following into bash rc file
  30. 1. export GOPATH=/usr/local/go
  31. 2. export PATH=$PATH:$GOPATH/bin
  32. 5. curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
  33. 6. sudo apt-get install -y nodejs
  34.  
  35. 1. Verify All Versions
  36. 1. curl -V
  37. 2. npm -v
  38. 3. docker version
  39. 4. docker-compose version
  40. 5. go version
  41. 6. python -V
  42. 7. node -v
  43. Install Fabric-Sample, Binaries & Docker Images
  44. 1. Latest Images
  45. 1. curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.0.0 1.4.7
  46. 2. Version Specific
  47. 1. curl -sSL https://bit.ly/2ysbOFE | bash -s -- <fabric_version> <fabric-ca_version> <thirdparty_version>
  48. 2. curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.0.1 1.4.6 0.4.18
  49. Important Note:
  50. Add following binary path to bashrc file
  51. * export PATH=$PATH:/home/ubuntu/fabric-samples/bin
Add Comment
Please, Sign In to add comment