Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Updates include
Browse files Browse the repository at this point in the history
- 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
mbwhite committed Jul 21, 2022
1 parent 5ea1f58 commit 18714d2
Show file tree
Hide file tree
Showing 42 changed files with 4,062 additions and 181 deletions.
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
- Bank/Finance Company (two of)




## Parts of the system

- Chaincode for the private asset transfer
Expand All @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions applications/ping-chaincode/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
Loading

0 comments on commit 18714d2

Please sign in to comment.