download_images.sh 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/usr/bin/env bash
  2. # Detecting whether can import the header file to render colorful cli output
  3. if [ -f ./header.sh ]; then
  4. source ./header.sh
  5. elif [ -f scripts/header.sh ]; then
  6. source scripts/header.sh
  7. else
  8. alias echo_r="echo"
  9. alias echo_g="echo"
  10. alias echo_b="echo"
  11. fi
  12. ARCH=x86_64
  13. BASEIMAGE_RELEASE=0.3.2
  14. BASE_VERSION=1.1.0
  15. PROJECT_VERSION=1.0.4
  16. # For testing 1.0.0 images
  17. IMG_TAG=1.0.5
  18. echo_b "Downloading images from DockerHub... need a while"
  19. # TODO: we may need some checking on pulling result?
  20. docker pull yeasy/hyperledger-fabric-base:$IMG_TAG \
  21. && docker pull yeasy/hyperledger-fabric-peer:$IMG_TAG \
  22. && docker pull yeasy/hyperledger-fabric-orderer:$IMG_TAG \
  23. && docker pull yeasy/hyperledger-fabric-ca:$IMG_TAG \
  24. && docker pull hyperledger/fabric-couchdb:$ARCH-$IMG_TAG \
  25. && docker pull hyperledger/fabric-kafka:$ARCH-$IMG_TAG \
  26. && docker pull hyperledger/fabric-zookeeper:$ARCH-$IMG_TAG
  27. # Only useful for debugging
  28. # docker pull yeasy/hyperledger-fabric
  29. echo_b "===Pulling fabric images from official repo... with tag = ${IMG_TAG}"
  30. docker pull hyperledger/fabric-peer:$ARCH-$IMG_TAG
  31. docker pull hyperledger/fabric-tools:$ARCH-$IMG_TAG
  32. docker pull hyperledger/fabric-orderer:$ARCH-$IMG_TAG
  33. docker pull hyperledger/fabric-ca:$ARCH-$IMG_TAG
  34. docker pull hyperledger/fabric-ccenv:$ARCH-$IMG_TAG
  35. docker pull hyperledger/fabric-baseimage:$ARCH-$BASEIMAGE_RELEASE
  36. docker pull hyperledger/fabric-baseos:$ARCH-$BASEIMAGE_RELEASE
  37. docker pull hyperledger/fabric-couchdb:$ARCH-$IMG_TAG
  38. docker pull hyperledger/fabric-kafka:$ARCH-$IMG_TAG
  39. docker pull hyperledger/fabric-zookeeper:$ARCH-$IMG_TAG
  40. echo_g "Done, now can startup the network using docker-compose..."
  41. exit 0