mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-21 00:55:10 +00:00
test-network-k8s: Add CC debugging procedures for Linux (#735)
In chaincode debugging guidance, using the Docker host alias `host.docker.internal` is assumed. But, the alias is not yet supported for Linux. So, this patch adds its alternate procedure for Linux. Signed-off-by: Tatsuya Sato <tatsuya.sato.so@hitachi.com>
This commit is contained in:
parent
d3a61e1d4f
commit
2d32a8e7e3
1 changed files with 9 additions and 0 deletions
|
|
@ -105,6 +105,15 @@ export TEST_NETWORK_CHAINCODE_ADDRESS=host.docker.internal:9999
|
||||||
network cc package basic_1.0 asset-transfer-debug $PWD/build/asset-transfer-debug.tgz
|
network cc package basic_1.0 asset-transfer-debug $PWD/build/asset-transfer-debug.tgz
|
||||||
```
|
```
|
||||||
|
|
||||||
|
*NOTE:* The Docker host alias `host.docker.internal` is not yet supported for Linux.
|
||||||
|
In Linux environments, as a workaround, you should specify the IP address of the host directly instead of `host.docker.internal`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
export TEST_NETWORK_CHAINCODE_ADDRESS=<YOUR_HOST_IP_ADDRESS>:9999
|
||||||
|
|
||||||
|
network cc package basic_1.0 asset-transfer-debug $PWD/build/asset-transfer-debug.tgz
|
||||||
|
```
|
||||||
|
|
||||||
### Launch
|
### Launch
|
||||||
|
|
||||||
When chaincode is launched locally, it must declare the package ID in the environment as if the process had been managed
|
When chaincode is launched locally, it must declare the package ID in the environment as if the process had been managed
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue