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:
Tatsuya Sato 2022-05-11 23:25:31 +09:00 committed by GitHub
parent d3a61e1d4f
commit 2d32a8e7e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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