github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/Decentralized-Energy-Composer-master/fabric-dev-servers/fabric-scripts/hlfv12/downloadFabric.sh (about) 1 #!/bin/bash 2 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 # Exit on first error, print all commands. 16 set -e 17 18 # Grab the current directory. 19 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 20 21 pullFabricImage() { 22 local imageName="$1" 23 local imageTag="$2" 24 docker pull hyperledger/fabric-${imageName}:${imageTag} 25 #docker tag hyperledger/fabric-${imageName}:${imageTag} hyperledger/fabric-${imageName} 26 } 27 28 # Pull Hyperledger Fabric base images. 29 for imageName in peer orderer ccenv; do 30 pullFabricImage ${imageName} 1.2.1 31 done 32 33 # Pull Hyperledger Fabric CA images. 34 pullFabricImage ca 1.2.1 35 36 # Pull Hyperledger third-party images. 37 pullFabricImage couchdb 0.4.10