-
Notifications
You must be signed in to change notification settings - Fork 1k
refactor documentation #2150
refactor documentation #2150
Conversation
initial refactor of devnet-setup to improve the organization and to make the use of fabric more accessible to mere mortals without requiring a build of the binaries and images. Fixes: #2144 Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
Hi christo4ferris, Thanks for submitting this pull request! I can confirm that the DCO1.1 sign-off has been included. It is okay to process this pull request. dco-bot |
I'm interested in initial feedback on my refactor of devnet-setup.md @joshhus @srderson @muralisrini I am also interested in help with membership services usage. What was previously described is far from comprehensive or informative. It probably deserves a document of its own. I don't feel confident that I know enough (yet) about use of membersrvc to be writing the tutorial, but am willing to give it a go with some guidance. |
|
||
This approach simply leverages the Docker images that the Hyperledger Fabric project publishes to [DockerHub](https://hub.docker.com/u/hyperledger/dashboard/) and either Docker commands or Docker Compose descriptions of the network one wishes to create. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link is 404 for me. https://hub.docker.com/u/hyperledger works. Maybe because I'm not logged in?
fix typo and broken link Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
Looks better already. I'd suggest changing the name of the file from |
removed index.md from mkdocs.yml because it was a nothing burger deleted index.md created Setup directory renamed SandboxSetup.md Chaincode-setup.md and moved to Setup directory renamed dev-setup/install.md build.md because it was really build instructions cleaned up build.md moved dev-setup/JAVAChaincode.md to Setup relevant changes in README.md to account for renaming of various files removed TravisCI_Readme.md from mkdocs.yml because it is not relevant to anyone but the Hyperledger CI team moved TravisCI_Readme.md to top level directory moved dev-setup/ca-setup.md to Setup moved dev-setup/logging-control.md to Setup made change in core.yml to account for relocated logging-control.md Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
@srderson took your suggestion and it is becoming a bit more involved than I had planned originally. However, I am pretty pleased thus far with the progress. I have moved all of the setup to a Setup directory and I added that to the main index. Then I had to accommodate all the moving around which triggered a bit more refactoring. @rameshthoomu is there a way to generate the mkdocs against a pull request or a personal repo? I'd like to see how this looks. |
cleaned up ca-setup.md use ‘Chaincode’ capitalization consistently in README minor tweaks to devenv.md Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
@christo4ferris : mkdocs works only on Push notifications. yes, it is possible to setup on a personal repo. http://chaincode-docs.readthedocs.io/en/latest/. I have observed 404 not found errors in couple places. Will send you the list of observations in sometime. Just for reference, I have created draft version on ReadTheDocs Readme.md. https://github.com/rameshthoomu/fabric/blob/tools/docs/RTD.md |
add links to TOC in protocol-specification.md Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
fix broken internal links Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
@rameshthoomu can you please investigate the jenkins "failure" - I used [ci skip] because just docs changed but Jenkins seems to think that skipping == fail. https://jenkins.hyperledger.org/job/fabric-github-verify-x86_64/557/console |
seems there is an open issue in Jenkins ci-skip plugin.. Created an issue in Jenkins JIRA. |
Merge remote-tracking branch 'hyperledger/master' into issue-2144 fix up node idk doc README.md Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com>
@hyperledger/fabric-maintainers @joshhus @nickgaski @mastersingh24 @smithbk I think that this is ready to merge. The docs still need some additional attention, but this hopefully makes things a bit better organized and hopefully up to date (worked on my machine;-) |
check that... just had a discussion with @muralisrini about --peer-chaincodedev flag and I need to tweak the chaincode dev page a bit before we merge. |
relocated and refactored the NodeSDK setup reworked some of the chaincode setup docs other cosmetic tweaks Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
okay @hyperledger/fabric-maintainers @joshhus @nickgaski @mastersingh24 @smithbk I think that this is ready for review. Thanks. |
Note that Jenkins failure is result of Jenkins bug with [ci skip]. There are no code changes in this PR (well, excepting to a comment in core.yaml that changed the reference to a markdown file). |
fix broken link and mkdocs.yml Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
more broken links fixed minor cosmetic tweaks Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
### Logging control | ||
|
||
See [Logging Control](logging-control.md) for information on controlling | ||
logging output from the `peer` and chaincodes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
" 'peer' and deployed chaincode." ?
address more reviewer feedback Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
address remaining reviewer comments Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
one last one? Sigbed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
thanks @srderson @JonathanLevi @joshhus for the reviews! |
LGTM. Thanks for the reviews @JonathanLevi and @joshhus ! We can continue making improvements in future PRs. |
I'm adding comments to the PR, much better method. |
ah okay, next one. |
|
||
For example, a peer that is also a validator would have a role value of 6. | ||
|
||
When the CA is started for the first time, it will generate all of its required state (e.g., internal databases, CA certificates, blockchain keys, etc.) and writes this state to the directory given in its configuration. The certificates for the CA services (i.e., for the ECA, TCA, and TLSCA) are self-signed as the current default. If those certificates shall be signed by some root CA, this can be done manually by using the `*.priv` and `*.pub` private and public keys in the CA state directory, and replacing the self-signed `*.cert` certificates with root-signed ones. The next time the CA is launched, it will read and use those root-signed certificates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"... of its required state attributes ..." ? or "states" ...
"... and write its state ..." or "states"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshhus sorry, thought you were done... @JonathanLevi plans to take on ca-setup.md. Please feel free to submit PRs for any other changes.
I looked at some of the other files incl. /devenv.md and /build.md, and find nothing major - looks good. Minor nits to look out for moving fwd (can reduce translation flags down the road):
|
* initial refactor of devnet-setup initial refactor of devnet-setup to improve the organization and to make the use of fabric more accessible to mere mortals without requiring a build of the binaries and images. Fixes: hyperledger-archives#2144 Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * fix typo and 404 fix typo and broken link Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * this is turning into a major refactor of docs removed index.md from mkdocs.yml because it was a nothing burger deleted index.md created Setup directory renamed SandboxSetup.md Chaincode-setup.md and moved to Setup directory renamed dev-setup/install.md build.md because it was really build instructions cleaned up build.md moved dev-setup/JAVAChaincode.md to Setup relevant changes in README.md to account for renaming of various files removed TravisCI_Readme.md from mkdocs.yml because it is not relevant to anyone but the Hyperledger CI team moved TravisCI_Readme.md to top level directory moved dev-setup/ca-setup.md to Setup moved dev-setup/logging-control.md to Setup made change in core.yml to account for relocated logging-control.md Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * the docs refactor continues cleaned up ca-setup.md use ‘Chaincode’ capitalization consistently in README minor tweaks to devenv.md Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * add links to TOC in protocol-specification.md add links to TOC in protocol-specification.md Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * fix broken internal links fix broken internal links Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * relocated and refactored the NodeSDK setup relocated and refactored the NodeSDK setup reworked some of the chaincode setup docs other cosmetic tweaks Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * fix broken link and mkdocs.yml fix broken link and mkdocs.yml Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * more broken links fixed more broken links fixed minor cosmetic tweaks Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * address typos in sdk/node/README.md address typos in sdk/node/README.md and docs/Setup/NodeSDK-setup.md Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * fixed double space after period fixed double space after period Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * fix we''ll typo fix we''ll typo Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> * address review comments address review comments Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * address additional review comments address additional review comments Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * address grammar issue address grammar issue Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * add SystemChaincode/noop.md add SystemChaincode/noop.md Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * fix grammar nits fix grammar nits Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * fix typos fix typos Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * address review feedback from @joshhus address review feedback from @joshhus Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * address more reviewer feedback address more reviewer feedback Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * address remaining reviewer comments address remaining reviewer comments Signed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip] * one last one? one last one? Sigbed-off-by: Christopher Ferris <chrisfer@us.ibm.com> [ci skip]
Description
refactor of docs to make the use of fabric components more accessible to mere mortals and without requiring that binaries and images be built by the user. This turned into a major refactoring exercise.
Motivation and Context
There were a number of things that needed to be addressed. First, there was lots of redundant documentation about how to start components etc that was either conflicting, or at the very least inconsistent. I attempted to refactor things so that there is setup, build, and operational separation.
More could be and should be done, but I don't think it makes sense to leave this outstanding any longer.
Fixes #2144
How Has This Been Tested?
I have gone through and tested the various directions personally.
Checklist:
Signed-off-by: Christopher Ferris chrisfer@us.ibm.com