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

[FAB-14083] Chaincode as an external service documentation #399

Merged
merged 2 commits into from
Dec 12, 2019

Conversation

pamandrejko
Copy link
Contributor

Signed-off-by: pama-ibm pama@ibm.com

Adding a new topic to the documentation for configuring chaincode as an external service.

  • Documentation update

Description

Content includes an entry in the Operations Guide toc and the new topic which describes the process for configuring Chaincode as an external service.
Source material came from Murali here: https://docs.google.com/document/d/1WhJmbHt7JXNCStXWyM7eaTxUaA9PAlfHwVPI5RUnOAQ/edit?usp=sharing

Related issues

FAB-16906 External Builder and Launcher #386

Release Note

@denyeart We need to update the release notes and what's new if you have not already.

Copy link
Contributor

@denyeart denyeart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a quick read through.... Jason said he'll do technical review...

docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
Copy link
Contributor

@muralisrini muralisrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a few nits @pamandrejko

docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
sykesm
sykesm previously requested changes Dec 12, 2019
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
docs/source/cc_service.md Show resolved Hide resolved
docs/source/cc_service.md Outdated Show resolved Hide resolved
@pamandrejko pamandrejko force-pushed the FAB-14083 branch 4 times, most recently from bc9beae to 09c867d Compare December 12, 2019 17:32
Signed-off-by: pama-ibm <pama@ibm.com>

Update docs/source/cc_service.md

Co-Authored-By: denyeart <enyeart@us.ibm.com>

Update docs/source/cc_service.md

Co-Authored-By: denyeart <enyeart@us.ibm.com>

[FAB-14083] Chaincode as a service documentation

Co-Authored-By: denyeart <enyeart@us.ibm.com>
Signed-off-by: pama-ibm <pama@ibm.com>

[FAB-14083] External chaincode as a service
@denyeart denyeart dismissed stale reviews from sykesm and jyellick December 12, 2019 18:07

comments addressed.

@denyeart
Copy link
Contributor

comments addressed. lgtm.

Copy link
Contributor

@muralisrini muralisrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Pam!

@muralisrini muralisrini merged commit 5deab9a into hyperledger:master Dec 12, 2019

### code.tar.gz archive requirements

The `code.tar.gz` archive must include connection information for the chaincode endpoint. This information is packaged into `connection.json` in the `/bin/release` step (see below). In this example we package `connection.json` directly in `code.tar.gz` so the `release` step can just copy it over.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still isn't correct. We are prescribing a sample implementation instead of documenting the function in fabric.

Comment on lines +45 to +47
"key_path": "path/rooted/in/release/directory/key.pem",
"cert_path": "path/rooted/in/release/directory/cert.pem",
"root_cert_path": "path/rooted/in/release/directory/rootcert.pem"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a JIRA opened to change these to be values within the document instead of spreading them around the tree. That changes the key and the semantics and keep the definitions consistent between chaincode clients (what we have today) and chaincode servers (what this is talking about).

I really don't think it will make beta so this is mostly informational...

{"path":"","type":"external","label":"mycc"}
```

## Configuring a peer to process external chaincode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really think most of this unnecessarily overlaps with what we have in the other doc.

In my earlier comment I suggested the areas to focus on here; I'll go further and say that I think the connection.json should be documented or linked within the /bin/release portion of external builders as that's really the only intersection between the two.

Comment on lines +115 to +118
if [ "$#" -ne 2 ]; then
>&2 echo "Expected 2 directories got $#"
exit 2
fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're needlessly complicating examples by having these assertions. It looks like we're just copying the contents of tests.

@denyeart
Copy link
Contributor

@muralisrini Will address the remaining comments in subsequent PR.

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

Successfully merging this pull request may close these issues.

5 participants