Closed SamYuan1990 closed 3 years ago
btw, I am use fabric 2.2
npx caliper bind --caliper-bind-sut fabric:2.2
I am not sure if we should add this into docker file to make caliper docker container able to supports https://hyperledger.github.io/caliper/v0.4.2/fabric-tutorial/tutorials-fabric-existing/ ??
@SamYuan1990 We can't just add that to the Dockerfile, not everyone is binding to the same connector/version. You need to include the --caliper-bind-sut fabric:2.2
parameter when you execute the launch manager
command, and the manager will bind to that connector automatically.
If you intend to use only the Fabric 2.2 binding during your measurements, you could build your own custom image, that runs the binding command during building the image, so you don't have to run it every time you spin up a container.
will try and feed back later.
--caliper-bind-sut fabric:2.2
able to support test with a pre builded fabric network right?
Yes, for Fabric v2, you either have to initialize your network (channels, chaincodes) yourself, or use a v1 binding to perform an init-only run, then v2 binding to perform a test-only run.
Sorry for reply late, verified. thx.
docker run -e CALIPER_BIND_SUT=fabric:2.2 -e CALIPER_BENCHCONFIG=/caliper/benchmarks/assetBenchmark.yaml -e CALIPER_NETWORKCONFIG=/caliper/networks/brix-config.yaml -v $PWD:/caliper hyperledger/caliper:0.4.2 launch manager
share a script above as information sharing for the docker version usage.
I am confuse for docker container for caliper does it missing any thing?
Context
but when move to docker it shows Unexpected error during benchmark execution: Error: Unable to detect required Fabric binding packages
2021.07.17-12:11:06.864 info [caliper] [cli-launch-manager] Set workspace path: /hyperledger/caliper/workspace/caliper-workspace 2021.07.17-12:11:06.866 info [caliper] [cli-launch-manager] Set benchmark configuration path: /hyperledger/caliper/workspace/caliper-workspace/myAssetBenchmark.yaml 2021.07.17-12:11:06.867 info [caliper] [cli-launch-manager] Set network configuration path: /hyperledger/caliper/workspace/caliper-workspace/networkConfig.yaml 2021.07.17-12:11:06.867 info [caliper] [cli-launch-manager] Set SUT type: fabric 2021.07.17-12:11:06.911 info [caliper] [benchmark-validator] No observer specified, will default to
none
2021.07.17-12:11:06.911 info [caliper] [caliper-engine] Starting benchmark flow 2021.07.17-12:11:06.941 error [caliper] [cli-launch-manager] Unexpected error during benchmark execution: Error: Unable to detect required Fabric binding packages Usage: caliper launch manager --caliper-bind-sut fabric:1.4 [other options]