Skip to content

Commit

Permalink
[FAB-3056] Pull relevant docker images
Browse files Browse the repository at this point in the history
The intent of this patch is to pull relevant docker images
from docker-hub depending upon the underlying architecture.

Change-Id: I49c1c1814591979ef90d9616762dc12620241d6a
Signed-off-by: Krishna Harsha Voora <krishvoor@in.ibm.com>
  • Loading branch information
krishvoor committed Apr 26, 2017
1 parent 852997a commit 1f0a0cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/e2e_cli/download-dockerimages.sh
Expand Up @@ -6,6 +6,9 @@
# hyperledger/fabric-<image> latest tag
##################################################

#Set ARCH variable i.e ppc64le,s390x,x86_64,i386
ARCH=`uname -m`

dockerFabricPull() {
local FABRIC_TAG=$1
for IMAGES in peer orderer couchdb ccenv javaenv kafka zookeeper; do
Expand Down Expand Up @@ -59,8 +62,8 @@ while getopts "\?hc:f:" opt; do
esac
done

: ${CA_TAG:="x86_64-1.0.0-alpha"}
: ${FABRIC_TAG:="x86_64-1.0.0-alpha"}
: ${CA_TAG:="$ARCH-1.0.0-alpha"}
: ${FABRIC_TAG:="$ARCH-1.0.0-alpha"}

echo "===> Pulling fabric Images"
dockerFabricPull ${FABRIC_TAG}
Expand Down

0 comments on commit 1f0a0cb

Please sign in to comment.