mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
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:
parent
1f283fc698
commit
59c664114d
3 changed files with 4 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -13,3 +13,4 @@
|
|||
vendor/
|
||||
.vscode
|
||||
.gradle
|
||||
.idea
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ trigger:
|
|||
|
||||
variables:
|
||||
NODE_VER: '12.x'
|
||||
PATH: $(Agent.BuildDirectory)/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
||||
|
||||
jobs:
|
||||
- job: fabcar_go
|
||||
|
|
|
|||
|
|
@ -5,13 +5,11 @@
|
|||
steps:
|
||||
- script: |
|
||||
set -eo pipefail
|
||||
wget -q -P /tmp https://hyperledger.jfrog.io/hyperledger/fabric-binaries/hyperledger-fabric-linux-amd64-latest.tar.gz
|
||||
sudo tar xzvf /tmp/hyperledger-fabric-linux-amd64-latest.tar.gz -C /usr/local
|
||||
curl -L --retry 5 --retry-delay 3 https://hyperledger.jfrog.io/hyperledger/fabric-binaries/hyperledger-fabric-linux-amd64-latest.tar.gz | tar xz
|
||||
displayName: Download Fabric CLI
|
||||
- script: |
|
||||
set -eo pipefail
|
||||
wget -q -P /tmp https://hyperledger.jfrog.io/hyperledger/fabric-binaries/hyperledger-fabric-ca-linux-amd64-latest.tar.gz
|
||||
sudo tar xzvf /tmp/hyperledger-fabric-ca-linux-amd64-latest.tar.gz -C /usr/local
|
||||
curl -L --retry 5 --retry-delay 3 https://hyperledger.jfrog.io/hyperledger/fabric-binaries/hyperledger-fabric-ca-linux-amd64-latest.tar.gz | tar xz
|
||||
displayName: Download Fabric CA CLI
|
||||
- script: bash ci/getDockerImages.sh
|
||||
displayName: Pull Fabric Docker images
|
||||
|
|
|
|||
Loading…
Reference in a new issue