Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation of test-network-k8s+caliper environment setup procedure #1236

Closed
satota2 opened this issue Jul 4, 2024 · 1 comment
Closed
Assignees

Comments

@satota2
Copy link
Contributor

satota2 commented Jul 4, 2024

Currently, caliper does not consider connecting to test-network-k8s, and the procedure for doing so is not shown.
Unfortunately, there is currently a gap between the caliper and the test-network-k8s environment, so it is difficult to connect directly.
It would be beneficial for test-network-k8s users to document the steps for bridging this gap and integrating the two.
Related discussion on Discord is here.

The specific gaps are shown below:

  • Regarding the chaincode deployment:

    • In test-network-k8s, chaincode is deployed as Chaincode-as-a-Service (CCaaS). You will need to adapt the Caliper chaincodes to this setup by following the documentation or other examples.
    • Specifically, you may need to:
      • Prepare Dockerfiles to create chaincode images for each chaincode.
      • For chaincodes using the Contract API, updating the library version might be sufficient. However, some of Caliper's chaincodes may use old APIs, requiring modifications to run as chaincode servers.
  • Regarding the certificate paths:

    • In test-network-k8s, keys and certificates are placed under the build/enrollments folder. Running the rest-easy script generates connection profiles under the build/fabric-rest-sample-config directory, which are designed for REST API servers running as Kubernetes pods.
    • You may need to:
      • Adjust the paths in the test-network.yaml to match the correct locations.
        Modify the connection profiles generated by rest-easy to match Caliper's requirements or consider running Caliper as a Kubernetes pod.
@takayuki-nagai
Copy link
Contributor

I would like to be in charge of creating this document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants