2017-09-01 20:09:18 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
ARCH=x86_64
|
2017-09-11 10:33:29 +08:00
|
|
|
BASEIMAGE_RELEASE=0.3.2
|
|
|
|
PROJECT_VERSION=1.0.2
|
2017-09-01 20:09:18 +08:00
|
|
|
|
|
|
|
# For testing 1.0.0 images
|
2017-09-11 10:33:29 +08:00
|
|
|
IMG_TAG=1.0.2
|
2017-09-01 20:09:18 +08:00
|
|
|
|
2018-01-18 17:33:15 +08:00
|
|
|
echo "Downloading images from DockerHub... need a while"
|
2017-09-01 20:09:18 +08:00
|
|
|
|
|
|
|
# TODO: we may need some checking on pulling result?
|
|
|
|
docker pull yeasy/hyperledger-fabric-base:$IMG_TAG \
|
|
|
|
&& docker pull yeasy/hyperledger-fabric-peer:$IMG_TAG \
|
|
|
|
&& docker pull yeasy/hyperledger-fabric-orderer:$IMG_TAG \
|
|
|
|
&& docker pull yeasy/hyperledger-fabric-ca:$IMG_TAG \
|
|
|
|
&& docker pull hyperledger/fabric-couchdb:$ARCH-$IMG_TAG \
|
|
|
|
&& docker pull hyperledger/fabric-kafka:$ARCH-$IMG_TAG \
|
|
|
|
&& docker pull hyperledger/fabric-zookeeper:$ARCH-$IMG_TAG
|
|
|
|
|
|
|
|
# Only useful for debugging
|
|
|
|
# docker pull yeasy/hyperledger-fabric
|
|
|
|
|
2018-01-18 17:33:15 +08:00
|
|
|
echo "===Pulling fabric images from official repo... with tag = ${IMG_TAG}"
|
2017-09-11 10:33:29 +08:00
|
|
|
docker pull hyperledger/fabric-peer:$ARCH-$IMG_TAG
|
|
|
|
docker pull hyperledger/fabric-tools:$ARCH-$IMG_TAG
|
|
|
|
docker pull hyperledger/fabric-orderer:$ARCH-$IMG_TAG
|
|
|
|
docker pull hyperledger/fabric-ca:$ARCH-$IMG_TAG
|
|
|
|
docker pull hyperledger/fabric-ccenv:$ARCH-$IMG_TAG
|
|
|
|
docker pull hyperledger/fabric-baseimage:$ARCH-$BASEIMAGE_RELEASE
|
|
|
|
docker pull hyperledger/fabric-baseos:$ARCH-$BASEIMAGE_RELEASE
|
|
|
|
docker pull hyperledger/fabric-couchdb:$ARCH-$IMG_TAG
|
|
|
|
docker pull hyperledger/fabric-kafka:$ARCH-$IMG_TAG
|
|
|
|
docker pull hyperledger/fabric-zookeeper:$ARCH-$IMG_TAG
|
|
|
|
|
2018-01-18 17:33:15 +08:00
|
|
|
echo "Done, now can startup the network using docker-compose..."
|
2017-09-11 10:33:29 +08:00
|
|
|
|
|
|
|
exit 0
|