-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Adding examples of CCAAS and support into the test-network #560
Conversation
b3f69eb
to
b721a89
Compare
e34c3cf
to
1207a47
Compare
1207a47
to
4f65f6d
Compare
Note to reviewers This is an additional to the existing code, the existing code is unaffected so will still work, only the new parts are dependent on the next release of Fabric., |
test-network/network.sh
Outdated
@@ -422,6 +437,14 @@ while [[ $# -ge 1 ]] ; do | |||
CC_INIT_FCN="$2" | |||
shift | |||
;; | |||
-cport ) | |||
CC_SERVER_PORT="$2" |
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.
Since this only applies to chaincode-as-a-service, I'd call it CCAAS_SERVER_PORT to avoid confusion.
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.
actually it doesn't exist anymore :-) Not really needed.
test-network/network.sh
Outdated
CC_SERVER_PORT="$2" | ||
shift | ||
;; | ||
-ccaasdr ) |
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.
Maybe simply ccaas
? I at least recognize that term. ccaasdr
doesn't mean anything to me.
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.
ccaas though doesn't really reflect what this option means.
--chaincode-as-a-service-do-not-start-docker
would be the full option name :-) I've changed to ccaasdocker and this is the help
Usage:
network.sh deployCCAAS [Flags]
Flags:
-c <channel name> - Name of channel to deploy chaincode to
-ccn <name> - Chaincode name.
-ccv <version> - Chaincode version. 1.0 (default), v2, version3.x, etc
-ccs <sequence> - Chaincode definition sequence. Must be an integer, 1 (default), 2, 3, etc
-ccp <path> - File path to the chaincode. (used to find the dockerfile for building the docker image only)
-ccep <policy> - (Optional) Chaincode endorsement policy using signature policy syntax. The default policy requires an endorsement from Org1 and Org2
-cccg <collection-config> - (Optional) File path to private data collections configuration file
-cci <fcn name> - (Optional) Name of chaincode initialization function. When a function is provided, the execution of init will be requested and the function will be invoked.
-ccaasdocker <true|false> - (Optional) Default is true; the chaincode docker image will be built and containers started automatically. Set to false to control this manually
- Updated the test-network with examples of runnig CCAAS - Updating the asset transfer basic with how to run chaincode as a service. Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
4f65f6d
to
9c94e8f
Compare
Signed-off-by: Matthew B White whitemat@uk.ibm.com