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

add update function for docker agent #217

Merged
merged 1 commit into from
Feb 23, 2021

Conversation

dexhunter
Copy link
Contributor

  • add update function
  • TODO: add update.sh in upstream compose files

Signed-off-by: Dixing (Dex) Xu dixingxu@gmail.com

@dexhunter dexhunter requested a review from a team January 29, 2021 14:26
Copy link
Contributor

@XuHugo XuHugo left a comment

Choose a reason for hiding this comment

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

ok

@XuHugo XuHugo self-requested a review January 30, 2021 01:49
Copy link
Contributor

@yeasy yeasy left a comment

Choose a reason for hiding this comment

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

The first line of commit msg should be started with capitalized letter.

elif act == 'update':

env = {
'HLF_NODE_MSP': request.form.get('msp'),
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to ignore empty values.
And add test result in the commit msg.

@dexhunter dexhunter force-pushed the add-update-function branch from d7f1390 to e9c9d98 Compare January 30, 2021 05:15
@dexhunter
Copy link
Contributor Author

@yeasy I did not find update.sh at upstream scripts, just wonder which image should I use? Thanks

@dexhunter
Copy link
Contributor Author

The test results are ok:
image

@dexhunter dexhunter force-pushed the add-update-function branch from e9c9d98 to 04b046c Compare January 30, 2021 05:28
@dexhunter dexhunter requested a review from yeasy February 2, 2021 06:50
@yeasy
Copy link
Contributor

yeasy commented Feb 2, 2021

@yeasy I did not find update.sh at upstream scripts, just wonder which image should I use? Thanks

You should create a new update.sh.

The image is built from the cello-hlf Dockerfile.

data = {
'msp':base64.b64encode(node_msp.read()),
'tls':base64.b64encode(tls.read()),
'bootstrap_block':base64.b64encode(block.read()),
'peer_config_file':base64.b64encode(peer_config.read()),
'orderer_config_file':base64.b64encode(orderer_config.read()),
'img': 'yeasy/hyperledger-fabric:2.2.0',
# 'img': 'yeasy/hyperledger-fabric:2.2.0',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yeasy Do I need to delete this line or can I leave for a reference?

Copy link
Contributor

Choose a reason for hiding this comment

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

Better change it to hyperledger/cello-hlf:2.2.0.

@dexhunter
Copy link
Contributor Author

@yeasy ok, I've changed accordingly

* add update function
* add update.sh at docker image
* add test

Signed-off-by: Dixing (Dex) Xu <dixingxu@gmail.com>
@yeasy yeasy merged commit a054ba6 into hyperledger-cello:master Feb 23, 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.

3 participants