Skip to content

Commit

Permalink
FAB-8748 Get fabric-ca-client binary from bootstrap.sh
Browse files Browse the repository at this point in the history
Include curl command in bootstrap.sh script to download
fabric-ca-client binary from nexus2. This will keep
fabric-ca-client binary in bin directory along with fabric
binaries. Also update samples.rst doc to include the missing
binary list

Change-Id: If23e7bb75323d15a19a8703e4c2c4bcde5dbb391
Signed-off-by: rameshthoomu <rameshbabu.thoomu@gmail.com>
  • Loading branch information
rameshthoomu committed Mar 11, 2018
1 parent 07de8ea commit e7ed520
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/source/samples.rst
Expand Up @@ -72,8 +72,10 @@ created above. It retrieves four platform-specific binaries:

* ``cryptogen``,
* ``configtxgen``,
* ``configtxlator``, and
* ``configtxlator``,
* ``peer``
* ``orderer`` and
* ``fabric-ca-client``

and places them in the ``bin`` sub-directory of the current working
directory.
Expand Down
9 changes: 8 additions & 1 deletion scripts/bootstrap.sh
Expand Up @@ -47,9 +47,16 @@ dockerCaPull() {
: ${FABRIC_TAG:="$MARCH-$VERSION"}
: ${THIRDPARTY_TAG:="$MARCH-$THIRDPARTY_IMAGE_VERSION"}

echo "===> Downloading platform binaries"
echo "===> Downloading platform specific fabric binaries"
curl https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/${ARCH}-${VERSION}/hyperledger-fabric-${ARCH}-${VERSION}.tar.gz | tar xz

echo "===> Downloading platform specific fabric-ca-client binary"
curl https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric-ca/hyperledger-fabric-ca/${ARCH}-${VERSION}/hyperledger-fabric-ca-${ARCH}-${VERSION}.tar.gz | tar xz
if [ $? != 0 ]; then
echo
echo "------> $VERSION fabric-ca-client binary is not available to download (Avaialble from 1.1.0-rc1) <----"
echo
fi
echo "===> Pulling fabric Images"
dockerFabricPull ${FABRIC_TAG}

Expand Down

0 comments on commit e7ed520

Please sign in to comment.