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

Utilize 2.5 images for java chaincode and node chaincode #4984

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

denyeart
Copy link
Contributor

Java chaincode image javaenv and
Node chaincode image nodeenv
will continue to be maintained at version 2.5
instead of creating versions 3.0 of them.

Therefore, instead of using the current Fabric TWO_DIGIT_VERSION for these chaincodes,
hardcode them at 2.5 in the default sample config.

@denyeart denyeart requested a review from a team as a code owner September 16, 2024 20:38
@@ -303,22 +304,23 @@ chaincode:
pull: false

golang:
# golang will never need more than baseos
# Compiled Go chaincodes will be copied to the fabric-baseos runtime image.
# TWO_DIGIT_VERSION represents Fabric major.minor version.
Copy link
Contributor

Choose a reason for hiding this comment

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

why not do that for Golang too? The state of Golang chaincode is the same as the others :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Go chaincode's fabric-ccenv and fabric-baseos images are built and published alongside fabric in this repository, might as well use the most recent images with latest Go.

yacovm
yacovm previously approved these changes Sep 17, 2024
@satota2
Copy link
Contributor

satota2 commented Sep 17, 2024

@denyeart I have a few minor points that caught my attention, so I'd like to leave the following comments:

@denyeart
Copy link
Contributor Author

denyeart commented Sep 17, 2024

@denyeart I have a few minor points that caught my attention, so I'd like to leave the following comments:

Thank you @satota2 , I've removed mention of javaenv and nodeenv from the install scripts since those scripts don't pull the javaenv and nodeenv images.

For the documentation, I've realized that we don't describe the default chaincode builder process anywhere in the docs. I've updated the chaincode lifecycle topic to at least mention the docker images and refer readers to the config files for more details so that we don't have to include version information into the docs which may get outdated.

For the samples, they still utilize Fabric v2.5, but I will soon update the samples to support both 2.5 and 3.0 and will handle the chaincode image versions accordingly.

Java chaincode image javaenv and
Node chaincode image nodeenv
will continue to be maintained at version 2.5
instead of creating versions 3.0 of them.

Therefore, instead of using the current Fabric TWO_DIGIT_VERSION
for these chaincodes, hardcode them at 2.5 in the default sample config.

Also, update documentation to mention the language-specific builders.

Signed-off-by: David Enyeart <enyeart@us.ibm.com>
Copy link
Contributor

@satota2 satota2 left a comment

Choose a reason for hiding this comment

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

@denyeart Thank you for the updates, including the changes to the documentation. The changes look good to me!
I also understand the plan for updating fabric-samples. Thanks for the clarification.

@satota2 satota2 enabled auto-merge (rebase) September 17, 2024 15:36
@satota2 satota2 merged commit 9cee1a4 into hyperledger:main Sep 17, 2024
15 checks passed
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.

3 participants