forked from hyperledger-archives/composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release fixes (hyperledger-archives#2744)
* Fix problem with VERSION docker build variable not getting through to the npm install command Signed-off-by: James Taylor <[email protected]> * Update Playground Link Update the link to the tutorial Signed-off-by: Caroline Church <[email protected]> * fixes of name connection profile, TSL -> TLS, s -> z. Signed-off-by: EdProsser <[email protected]> * The admin connection needs to be able to take the card for both of the deploy and the network admin card, The CLI, manually creates it's boot strap transactions - but the std adminAPI doesn't. So the start options that are passed in need to contain the card to be used for the network admin let card-for-the-network-admin = new IdCard(...) adminConnection.start({card:card-for-the-network-admin}); adminConnection.deploy({card:card-for-the-network-admin}); Signed-off-by: Matthew B White <[email protected]>
- Loading branch information
Showing
10 changed files
with
34 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -324,7 +324,7 @@ describe('AdminConnection', () => { | |
adminConnection.securityContext = mockSecurityContext; | ||
let businessNetworkDefinition = new BusinessNetworkDefinition('[email protected]'); | ||
sinon.stub(adminConnection, '_buildStartTransaction').resolves({ start: 'json' }); | ||
return adminConnection.start(businessNetworkDefinition) | ||
return adminConnection.start(businessNetworkDefinition, {card: mockAdminIdCard}) | ||
.then(() => { | ||
sinon.assert.calledOnce(adminConnection._buildStartTransaction); | ||
sinon.assert.calledWith(adminConnection._buildStartTransaction, businessNetworkDefinition, {card: mockAdminIdCard}); | ||
|
@@ -338,7 +338,7 @@ describe('AdminConnection', () => { | |
adminConnection.securityContext = mockSecurityContext; | ||
let businessNetworkDefinition = new BusinessNetworkDefinition('[email protected]'); | ||
sinon.stub(adminConnection, '_buildStartTransaction').resolves({ start: 'json' }); | ||
return adminConnection.start(businessNetworkDefinition, {opt: 1}) | ||
return adminConnection.start(businessNetworkDefinition, {card: mockAdminIdCard,opt: 1}) | ||
.then(() => { | ||
sinon.assert.calledOnce(adminConnection._buildStartTransaction); | ||
sinon.assert.calledWith(adminConnection._buildStartTransaction, businessNetworkDefinition, {card: mockAdminIdCard,opt: 1}); | ||
|
@@ -382,7 +382,7 @@ describe('AdminConnection', () => { | |
adminConnection.securityContext = mockSecurityContext; | ||
let businessNetworkDefinition = new BusinessNetworkDefinition('[email protected]'); | ||
sinon.stub(adminConnection, '_buildStartTransaction').resolves({ start: 'json' }); | ||
return adminConnection.deploy(businessNetworkDefinition) | ||
return adminConnection.deploy(businessNetworkDefinition,{card:mockAdminIdCard}) | ||
.then(() => { | ||
sinon.assert.calledOnce(adminConnection._buildStartTransaction); | ||
sinon.assert.calledWith(adminConnection._buildStartTransaction, businessNetworkDefinition, {card:mockAdminIdCard}); | ||
|
@@ -396,7 +396,7 @@ describe('AdminConnection', () => { | |
adminConnection.securityContext = mockSecurityContext; | ||
let businessNetworkDefinition = new BusinessNetworkDefinition('[email protected]'); | ||
sinon.stub(adminConnection, '_buildStartTransaction').resolves({ start: 'json' }); | ||
return adminConnection.deploy(businessNetworkDefinition, {opt: 1}) | ||
return adminConnection.deploy(businessNetworkDefinition, {opt: 1,card:mockAdminIdCard}) | ||
.then(() => { | ||
sinon.assert.calledOnce(adminConnection._buildStartTransaction); | ||
sinon.assert.calledWith(adminConnection._buildStartTransaction, businessNetworkDefinition, {opt: 1,card:mockAdminIdCard}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,11 @@ sidebar: sidebars/accordion-toc0.md | |
excerpt: "This tutorial will walk you through the steps required to configure Composer for connection with a running Hyperledger Fabric instance." | ||
--- | ||
|
||
# Deploying a {{site.data.conrefs.composer_full}} blockchain business network to {{site.data.conrefs.hlf_full}} for a single organisation | ||
# Deploying a {{site.data.conrefs.composer_full}} blockchain business network to {{site.data.conrefs.hlf_full}} for a single organization | ||
|
||
In the [development environment](../installing/development-tools.html), a simple {{site.data.conrefs.hlf_full}} network is created for you (`fabric-dev-servers`), along with all of the {{site.data.conrefs.composer_full}} configuration that you need in order to deploy a blockchain business network. | ||
|
||
This tutorial will demonstrate the steps that an administrator needs to take in order to deploy a blockchain business network to an instance of {{site.data.conrefs.hlf_full}}, including how to generate the necessary {{site.data.conrefs.composer_full}} configuration. | ||
|
||
This tutorial focuses on the steps required to deploy a blockchain business network to an instance of {{site.data.conrefs.hlf_full}} for a single organisation. A subsequent tutorial will demonstrate how to deploy a blockchain business network to an instance of {{site.data.conrefs.hlf_full}} for multiple organisations. | ||
This tutorial will demonstrate the steps that an administrator needs to take in order to deploy a blockchain business network to an instance of {{site.data.conrefs.hlf_full}} for a single organization, including how to generate the necessary {{site.data.conrefs.composer_full}} configuration. A subsequent tutorial will demonstrate how to deploy a blockchain business network to an instance of {{site.data.conrefs.hlf_full}} for multiple organizations. | ||
|
||
## Prerequisites | ||
|
||
|
@@ -57,9 +55,9 @@ The configuration for `configtxgen` is stored in the file: | |
|
||
You can find more information about these configuration tools, what they do, and how to use them by reading the {{site.data.conrefs.hlf_full}} documentation. | ||
|
||
#### Organisations | ||
#### Organizations | ||
|
||
The simple {{site.data.conrefs.hlf_full}} network is made up of a single organisation called `Org1`. The organisation uses the domain name `org1.example.com`. Additionally, the Membership Services Provider (MSP) for this organisation is called `Org1MSP`. In this tutorial, you will deploy a blockchain business network that only the organisation `Org1` can interact with. | ||
The simple {{site.data.conrefs.hlf_full}} network is made up of a single organization called `Org1`. The organization uses the domain name `org1.example.com`. Additionally, the Membership Services Provider (MSP) for this organization is called `Org1MSP`. In this tutorial, you will deploy a blockchain business network that only the organization `Org1` can interact with. | ||
|
||
#### Network components | ||
|
||
|
@@ -79,7 +77,7 @@ This tutorial will run {{site.data.conrefs.composer_full}} commands on the Docke | |
|
||
#### Users | ||
|
||
The organisation `Org1` is configured with a user named `[email protected]`. This user is an administrator. Administrators for an organisation have the permission to install the code for a blockchain business network onto their organisation's peers, and can also have the permission to start the blockchain business network, depending on configuration. In this tutorial, you will deploy a blockchain business network by acting as the user `[email protected]`. | ||
The organization `Org1` is configured with a user named `[email protected]`. This user is an administrator. Administrators for an organization have the permission to install the code for a blockchain business network onto their organization's peers, and can also have the permission to start the blockchain business network, depending on configuration. In this tutorial, you will deploy a blockchain business network by acting as the user `[email protected]`. | ||
|
||
The user `[email protected]` has a set of certificates and private key files stored in the directory: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters