-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-3136] Include install script with release package
Since we distribute our runtime(s) as Docker images and there are several of them to download, it's convenient to provide a script which will download the correct version as well as iamges for the correct architecture. The script basically has a list of the various fabric images and the make target uses substituion to set the right variables for each platform. NOTE: I hard-coded VERSION to 1.0.0-alpha for now because we do need to publish these packages and update the docs to ensure things will still work with the alpha Change-Id: I76d6db3ab638e13e65c4b4c0ce23d4af4e6ef068 Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
- Loading branch information
1 parent
c9ecf9e
commit 9603b0e
Showing
2 changed files
with
44 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash -eu | ||
|
||
# This script pulls docker images from the Dockerhub hyperledger repositories | ||
|
||
# set the default Docker namespace and tag | ||
DOCKER_NS=_NS_ | ||
ARCH=_ARCH_ | ||
VERSION=1.0.0-alpha | ||
|
||
# set of Hyperledger Fabric images | ||
FABRIC_IMAGES=(fabric-peer fabric-orderer fabric-ccenv fabric-javaenv fabric-kafka fabric-zookeeper fabric-couchdb) | ||
|
||
for image in ${FABRIC_IMAGES[@]}; do | ||
echo "Pulling ${DOCKER_NS}/$image:${ARCH}-${VERSION}" | ||
docker pull ${DOCKER_NS}/$image:${ARCH}-${VERSION} | ||
done | ||
|