This repository has been archived by the owner on Nov 2, 2022. It is now read-only.
forked from Preetam007/hyperledger_composer_file_storage
-
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.
Fix typo. composer-file-stroage-ways -> composer-file-storage-ways
- Loading branch information
Showing
5 changed files
with
13 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,34 +59,35 @@ cd ~/fabric-tools | |
|
||
- Generate the Business Network Archive (BNA) file from the root directory: | ||
``` | ||
cd ~/hyperledger_composer_file_storage | ||
composer archive create -t dir -n . | ||
``` | ||
|
||
- Successfully created a file called `composer-file-stroage[email protected]` in root directory | ||
- Successfully created a file called `composer-file-storage[email protected]` in root directory | ||
|
||
- Install the runtime instance for the .bna file. This HAS to use the PeerAdmin@hlfv1 card | ||
``` | ||
composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName composer-file-stroage-ways | ||
composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName composer-file-storage-ways | ||
``` | ||
|
||
- Start a network and create a new networkAdmin card for the business network | ||
``` | ||
composer network start --card PeerAdmin@hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile composer-file-stroage[email protected] --file networkadmin.card | ||
composer network start --card PeerAdmin@hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile composer-file-storage[email protected] --file networkadmin.card | ||
``` | ||
|
||
- Import the new networkadmin.card generated | ||
``` | ||
composer card import --file networkadmin.card | ||
``` | ||
|
||
- A card `admin@composer-file-stroage-ways` should be visible with `composer-file-stroage-ways` as network assigned | ||
- A card `admin@composer-file-storage-ways` should be visible with `composer-file-storage-ways` as network assigned | ||
``` | ||
composer card list | ||
``` | ||
|
||
- Activate the card by setting the certificate | ||
``` | ||
composer network ping --card admin@composer-file-stroage-ways | ||
composer network ping --card admin@composer-file-storage-ways | ||
``` | ||
|
||
- To remove everything and start from scratch, follow step 1 | ||
|
@@ -109,7 +110,7 @@ docker-compose start | |
|
||
https://hyperledger.github.io/composer/reference/composer.network.update.html | ||
|
||
`composer network update -a composer-file-stroage[email protected] -c admin@composer-file-stroage-ways` | ||
`composer network update -a composer-file-storage[email protected] -c admin@composer-file-storage-ways` | ||
|
||
## 5. Other useful commands | ||
|
||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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