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

Adding examples of CCAAS and support into the test-network #560

Merged
merged 1 commit into from
Dec 17, 2021

Conversation

mbwhite
Copy link
Member

@mbwhite mbwhite commented Dec 13, 2021

  • 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

test-network/network.sh Outdated Show resolved Hide resolved
TEMP_CCAAS_TUTORIAL.md Outdated Show resolved Hide resolved
test-network/network.sh Outdated Show resolved Hide resolved
TEMP_CCAAS_TUTORIAL.md Outdated Show resolved Hide resolved
TEMP_CCAAS_TUTORIAL.md Outdated Show resolved Hide resolved
TEMP_CCAAS_TUTORIAL.md Outdated Show resolved Hide resolved
TEMP_CCAAS_TUTORIAL.md Outdated Show resolved Hide resolved
TEMP_CCAAS_TUTORIAL.md Outdated Show resolved Hide resolved
TEMP_CCAAS_TUTORIAL.md Outdated Show resolved Hide resolved
TEMP_CCAAS_TUTORIAL.md Outdated Show resolved Hide resolved
test-network/scripts/deployCCAAS.sh Outdated Show resolved Hide resolved
@mbwhite mbwhite force-pushed the update-ccaas branch 3 times, most recently from b3f69eb to b721a89 Compare December 14, 2021 12:04
TEMP_CCAAS_TUTORIAL.md Outdated Show resolved Hide resolved
TEMP_CCAAS_TUTORIAL.md Outdated Show resolved Hide resolved
TEMP_CCAAS_TUTORIAL.md Outdated Show resolved Hide resolved
TEMP_CCAAS_TUTORIAL.md Outdated Show resolved Hide resolved
test-network/network.sh Outdated Show resolved Hide resolved
@mbwhite mbwhite force-pushed the update-ccaas branch 2 times, most recently from e34c3cf to 1207a47 Compare December 15, 2021 13:11
@mbwhite mbwhite marked this pull request as ready for review December 15, 2021 13:11
@mbwhite mbwhite requested a review from a team as a code owner December 15, 2021 13:11
@mbwhite
Copy link
Member Author

mbwhite commented Dec 15, 2021

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.,

@@ -422,6 +437,14 @@ while [[ $# -ge 1 ]] ; do
CC_INIT_FCN="$2"
shift
;;
-cport )
CC_SERVER_PORT="$2"
Copy link
Contributor

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.

Copy link
Member Author

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.

CC_SERVER_PORT="$2"
shift
;;
-ccaasdr )
Copy link
Contributor

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.

Copy link
Member Author

@mbwhite mbwhite Dec 16, 2021

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

CHAINCODE_AS_A_SERVICE_TUTORIAL.md Outdated Show resolved Hide resolved
- 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>
@mbwhite mbwhite merged commit 96623f1 into hyperledger:main Dec 17, 2021
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.

4 participants