Change Download Location of Fabric Binaries (#143)

The current scripts download the fabric binaries and place them
in `/usr/local`. Modifying the host system in CI is generally
bad practice. The `bootstrap.sh` script also downloads the
binaries into the root of the `fabric-samples` repo. It is
good practice for us to do the same in CI. We also have
several samples that make an assumption about the location
of these scripts. In the future we should re-evaluate these
examples.

Signed-off-by: Brett Logan <brett.t.logan@ibm.com>
This commit is contained in:
Brett Logan 2020-03-30 12:51:39 -04:00 committed by GitHub
parent 1f283fc698
commit 59c664114d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

1
.gitignore vendored
View file

@ -13,3 +13,4 @@
vendor/ vendor/
.vscode .vscode
.gradle .gradle
.idea

View file

@ -8,6 +8,7 @@ trigger:
variables: variables:
NODE_VER: '12.x' NODE_VER: '12.x'
PATH: $(Agent.BuildDirectory)/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
jobs: jobs:
- job: fabcar_go - job: fabcar_go

View file

@ -5,13 +5,11 @@
steps: steps:
- script: | - script: |
set -eo pipefail set -eo pipefail
wget -q -P /tmp https://hyperledger.jfrog.io/hyperledger/fabric-binaries/hyperledger-fabric-linux-amd64-latest.tar.gz curl -L --retry 5 --retry-delay 3 https://hyperledger.jfrog.io/hyperledger/fabric-binaries/hyperledger-fabric-linux-amd64-latest.tar.gz | tar xz
sudo tar xzvf /tmp/hyperledger-fabric-linux-amd64-latest.tar.gz -C /usr/local
displayName: Download Fabric CLI displayName: Download Fabric CLI
- script: | - script: |
set -eo pipefail set -eo pipefail
wget -q -P /tmp https://hyperledger.jfrog.io/hyperledger/fabric-binaries/hyperledger-fabric-ca-linux-amd64-latest.tar.gz curl -L --retry 5 --retry-delay 3 https://hyperledger.jfrog.io/hyperledger/fabric-binaries/hyperledger-fabric-ca-linux-amd64-latest.tar.gz | tar xz
sudo tar xzvf /tmp/hyperledger-fabric-ca-linux-amd64-latest.tar.gz -C /usr/local
displayName: Download Fabric CA CLI displayName: Download Fabric CA CLI
- script: bash ci/getDockerImages.sh - script: bash ci/getDockerImages.sh
displayName: Pull Fabric Docker images displayName: Pull Fabric Docker images