Skip to content

Commit 1f0a0cb

Browse files
author
Krishna Harsha Voora
committed
[FAB-3056] Pull relevant docker images
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 <[email protected]>
1 parent 852997a commit 1f0a0cb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/e2e_cli/download-dockerimages.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
# hyperledger/fabric-<image> latest tag
77
##################################################
88

9+
#Set ARCH variable i.e ppc64le,s390x,x86_64,i386
10+
ARCH=`uname -m`
11+
912
dockerFabricPull() {
1013
local FABRIC_TAG=$1
1114
for IMAGES in peer orderer couchdb ccenv javaenv kafka zookeeper; do
@@ -59,8 +62,8 @@ while getopts "\?hc:f:" opt; do
5962
esac
6063
done
6164

62-
: ${CA_TAG:="x86_64-1.0.0-alpha"}
63-
: ${FABRIC_TAG:="x86_64-1.0.0-alpha"}
65+
: ${CA_TAG:="$ARCH-1.0.0-alpha"}
66+
: ${FABRIC_TAG:="$ARCH-1.0.0-alpha"}
6467

6568
echo "===> Pulling fabric Images"
6669
dockerFabricPull ${FABRIC_TAG}

0 commit comments

Comments
 (0)