aws-samples / non-profit-blockchain

Builds a blockchain network and application to track donations to non-profit organizations, using Amazon Managed Blockchain
Apache License 2.0
374 stars 288 forks source link

How to remove a chaincode on peer? #24

Closed VladislavIvanov closed 5 years ago

VladislavIvanov commented 5 years ago

Hi, @MCLDG !

The amazon managed blockchain service and your repo resources are awesome! I really appreciate what you have done!

During the chaincode development phase I have installed a lot chaincodes with different versions. I have managed to delete chaincode from the peer file system.

My question is - is there a way to kill the container that corresponds to the chaincode shim for each installed cc?

Thanks!

MCLDG-zz commented 5 years ago

Hi Vlad,

Do you mean remove the docker containers from the peer? If so, not in Amazon managed blockchain, as you have no access to the peer, and there isn't a cli command to do this. Is this something you would need need?

On Mon, 10 Jun 2019, 20:24 Vlad, notifications@github.com wrote:

Hi, @MCLDG https://github.com/MCLDG !

The amazon managed blockchain service and your repo resources are awesome! I really appreciate what you have done!

During the chaincode development phase I have installed a lot chaincodes with different versions. I have managed to delete chaincode from the peer file system.

My question is - is there a way to kill the container that corresponds to the chaincode shim for each installed cc?

Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aws-samples/non-profit-blockchain/issues/24?email_source=notifications&email_token=AC6QOGT23MCBVF5EIMEVBLLPZZBWXA5CNFSM4HWTBCFKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYRWDUA, or mute the thread https://github.com/notifications/unsubscribe-auth/AC6QOGQIHLYNSWEVQBLQ3GDPZZBWXANCNFSM4HWTBCFA .

VladislavIvanov commented 5 years ago

Hey, @MCLDG

Yes, I mean removing the docker containers from the peer.

How will you advice me to clear all unused chaincodes installed on peer? May be I should create new peer node and delete the old one?

Thanks!

MCLDG-zz commented 5 years ago

I'm not clear on why you want to clean up the chaincode. Is it causing you issues?

On Tue, 11 Jun 2019, 17:29 Vlad, notifications@github.com wrote:

Hey, @MCLDG https://github.com/MCLDG

Yes, I mean removing the docker containers from the peer.

How will you advice me to clear all unused chaincodes installed on peer? May be I should create new peer node and delete the old one?

Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aws-samples/non-profit-blockchain/issues/24?email_source=notifications&email_token=AC6QOGXWKEGMJOC4FP4T7CLPZ5V7LA5CNFSM4HWTBCFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXMQXQA#issuecomment-500763584, or mute the thread https://github.com/notifications/unsubscribe-auth/AC6QOGUD5DHDF75MMYMVOIDPZ5V7LANCNFSM4HWTBCFA .

VladislavIvanov commented 5 years ago

During the chaincode development phase I have installed a lot chaincodes with different versions. Now, I have a final version of my chaincode and I was wondering if I could clean up the redundant versions.

MCLDG-zz commented 5 years ago

Ok, in managed blockchain it's not possible. I see this as a nice to have, unless you see this causing you specific issues.

On Mon, 17 Jun 2019, 15:24 Vlad, notifications@github.com wrote:

During the chaincode development phase I have installed a lot chaincodes with different versions. Now, I have a final version of my chaincode and I was wondering if I could clean up the redundant versions.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aws-samples/non-profit-blockchain/issues/24?email_source=notifications&email_token=AC6QOGU3DJYIT65E4VOLFM3P2432XA5CNFSM4HWTBCFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX2IX2Q#issuecomment-502565866, or mute the thread https://github.com/notifications/unsubscribe-auth/AC6QOGWIUN62UPJMKCUW23DP2432XANCNFSM4HWTBCFA .