2017-05-12 13:42:40 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-06-07 15:53:15 +08:00
|
|
|
source scripts/header.sh
|
2017-05-10 11:56:47 +08:00
|
|
|
|
|
|
|
ARCH=x86_64
|
2017-06-08 11:44:31 +08:00
|
|
|
BASEIMAGE_RELEASE=0.3.1
|
|
|
|
BASE_VERSION=1.0.0
|
2017-05-10 11:56:47 +08:00
|
|
|
PROJECT_VERSION=1.0.0-preview
|
|
|
|
|
2017-06-08 11:44:31 +08:00
|
|
|
IMG_VERSION=0.9.4
|
2017-06-07 15:53:15 +08:00
|
|
|
# For testing latest images
|
2017-06-26 11:23:59 +08:00
|
|
|
IMG_VERSION=v1.0.0-rc1
|
2017-06-07 15:53:15 +08:00
|
|
|
|
|
|
|
echo_b "Downloading images from DockerHub... need a while"
|
2017-05-10 11:56:47 +08:00
|
|
|
|
2017-06-08 11:44:31 +08:00
|
|
|
# TODO: we may need some checking on pulling result?
|
2017-05-10 11:56:47 +08:00
|
|
|
docker pull yeasy/hyperledger-fabric-base:$IMG_VERSION \
|
|
|
|
&& docker pull yeasy/hyperledger-fabric-peer:$IMG_VERSION \
|
|
|
|
&& docker pull yeasy/hyperledger-fabric-orderer:$IMG_VERSION \
|
2017-06-22 17:58:40 +08:00
|
|
|
&& docker pull yeasy/hyperledger-fabric-ca:$IMG_VERSION \
|
|
|
|
&& docker pull hyperledger/fabric-couchdb:$ARCH-1.0.0-beta
|
2017-05-10 11:56:47 +08:00
|
|
|
|
|
|
|
# Only useful for debugging
|
|
|
|
# docker pull yeasy/hyperledger-fabric
|
|
|
|
|
2017-05-12 13:42:40 +08:00
|
|
|
echo_b "Rename images with official tags..."
|
2017-05-10 11:56:47 +08:00
|
|
|
docker tag yeasy/hyperledger-fabric-peer:$IMG_VERSION hyperledger/fabric-peer \
|
2017-06-07 15:53:15 +08:00
|
|
|
&& docker tag yeasy/hyperledger-fabric-peer:$IMG_VERSION hyperledger/fabric-tools \
|
2017-05-10 11:56:47 +08:00
|
|
|
&& docker tag yeasy/hyperledger-fabric-orderer:$IMG_VERSION hyperledger/fabric-orderer \
|
|
|
|
&& docker tag yeasy/hyperledger-fabric-ca:$IMG_VERSION hyperledger/fabric-ca \
|
2017-06-07 15:53:15 +08:00
|
|
|
&& docker tag yeasy/hyperledger-fabric-base:$IMG_VERSION hyperledger/fabric-ccenv:$ARCH-$PROJECT_VERSION \
|
2017-06-08 11:44:31 +08:00
|
|
|
&& docker tag yeasy/hyperledger-fabric-base:$IMG_VERSION hyperledger/fabric-baseos:$ARCH-$BASE_VERSION \
|
|
|
|
&& docker tag yeasy/hyperledger-fabric-base:$IMG_VERSION hyperledger/fabric-baseimage:$ARCH-$BASEIMAGE_RELEASE
|
2017-06-07 15:53:15 +08:00
|
|
|
|
2017-06-26 11:23:59 +08:00
|
|
|
echo_g "Done, now can startup the network using docker-compose..."
|