This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- basic chaincode using k8s builder (needs latest asnible collection to be built) - basic application - Setup of ids and profiles Signed-off-by: Matthew B White <[email protected]>
- Loading branch information
Showing
42 changed files
with
4,062 additions
and
181 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 |
---|---|---|
|
@@ -11,8 +11,6 @@ | |
- Bank/Finance Company (two of) | ||
|
||
|
||
|
||
|
||
## Parts of the system | ||
|
||
- Chaincode for the private asset transfer | ||
|
@@ -26,16 +24,20 @@ | |
|
||
## 0. Important Setup Steps | ||
|
||
Ahead of the [PR](https://github.com/IBM-Blockchain/ansible-collection/pull/610/files) being available | ||
Ahead of the [PR](https://github.com/IBM-Blockchain/ansible-collection/pull/610/files) being available please checkout the main branch | ||
|
||
``` | ||
git clone [email protected]:IBM-Blockchain/ansible-collection.git | ||
cd ansible-collection | ||
git fetch origin pull/610/head:ofs-ansible | ||
git checkout ofs-ansible | ||
docker build -t ofs-ansible . | ||
``` | ||
|
||
> For the impatient | ||
``` | ||
just kind review-config operator console fabric-network | ||
``` | ||
|
||
|
||
### 1. Create a KIND local Cluster | ||
|
||
This will start a local KIND cluster running in a docker container; there are some minor variations beween K8S clusters, for example default storage class, which this will configure for you. | ||
|
@@ -44,16 +46,24 @@ This will start a local KIND cluster running in a docker container; there are so | |
just kind | ||
``` | ||
|
||
### 1.5. Review the Configuration of the Fabric Operator/Console/Network | ||
|
||
To validate / see the configuration of the componets that will be created run | ||
|
||
```shell | ||
just review-config | ||
``` | ||
|
||
This will copy the default files into the `_cfg` directory, and display them. You're at liberty to alter these if you wish | ||
|
||
### 2. Deploy the Fabric Operator and Console | ||
|
||
This will deploy the Fabric Operator and the Fabric Operations console via two Ansible Playbooks, and some configuration variables. | ||
|
||
|
||
- Creation of the operator: `ansible-playbook ./infrastructure/01-operator-install.yml` | ||
- Creation of the console: `ansible-playbook ./infrastructure/02-console-install.yml` | ||
|
||
The configuration file is `vars.yml` | ||
The configuration file is `operator-console-vars.yml` | ||
|
||
```yaml | ||
# The type of K8S cluster this is using | ||
|
@@ -89,7 +99,7 @@ docker run --rm -v ${HOME}/.kube/:/home/ibp-user/.kube/ -v $(pwd)/infrastructure | |
or | ||
```shell | ||
just console | ||
just operator console | ||
``` | ||
|
||
The console will be running on `https://fabricinfra-hlf-console-console.localho.st/` - give it a try in your favourite browser. Be aware though it will complain as the certificate for HTTPS is not setup. | ||
|
@@ -110,7 +120,7 @@ This producces json, that the script will parse into a auth-vars.yml for ansible | |
This is the standard Ansible Collection network. | ||
|
||
``` | ||
just fabric-network | ||
just sample-network | ||
``` | ||
|
||
When this has completed, there will be a 2 org network ready to go. | ||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
dist |
Oops, something went wrong.