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

first-network/scripts/*: Make Chaincode name configurable #132

Closed

Conversation

maniankara
Copy link

References #131 #118

Signed-off-by: Anoop Vijayan Maniankara anoop@tuxera.com

@lindluni
Copy link
Contributor

You'll need to do the same for eyfn.sh passing around the parameter

@lindluni
Copy link
Contributor

You can test this by doing ./byfn.sh down then ./byfn.sh up then ./eyfn.sh up

1. The idea is to use this generic functions for managing any chaincode lifecycle inside cli container.
E.g.
'''
source scripts/utils.sh
packageChaincode 1 0 1 myapp
installChaincode 0 1 myapp
approveForMyOrg 1 0 1 myapp
....
'''

Signed-off-by: Anoop Vijayan Maniankara <anoop@tuxera.com>
@maniankara
Copy link
Author

@btl5037 Ah yes. Had missed that.
Have applied changes now and also have updated the commit message to be more descriptive.

Thanks,

@lindluni
Copy link
Contributor

Thanks for the quick response @maniankara I'll take a look at it later tonight!

@lindluni
Copy link
Contributor

LGTM, tested locally and ran as expected, backwards functionality remains intact

Copy link
Contributor

@lehors lehors left a comment

Choose a reason for hiding this comment

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

Is the intention really for this to require editing byfn.sh to set the chaincode name?
I think we might as well simply set it at the top of script.sh and requires people to edit script.sh then.

@@ -15,12 +15,14 @@ CC_SRC_LANGUAGE="$3"
TIMEOUT="$4"
VERBOSE="$5"
NO_CHAINCODE="$6"
NAME="$7"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think CC_NAME would be more descriptive and consistent with other variables like CC_SRC_LANGUAGE and while this adds an argument to this script specifying that argument requires editing byfn.sh, doesn't it?
On testing I noticed that a simple addition of that argument to byfn.sh doesn't even work because NO_CHAINCODE isn't set and the cc name argument is gobbled up as the NO_CHAINCODE argument.

@denyeart
Copy link
Contributor

denyeart commented Jun 25, 2020

Since byfn (first-network) is being retired soon, let's go ahead and close this 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.

None yet

4 participants