Skip to content

Commit 3ecaab2

Browse files
authored
Merge branch 'main' into 561-CaDB
2 parents 54511da + 70769f2 commit 3ecaab2

32 files changed

+147
-276
lines changed

.github/workflows/test-on-push.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
run: |
1717
shellcheck --version && \
1818
yamllint -v && \
19-
npm install && \
20-
npm run build && \
2119
./fablo-build.sh
2220
2321
- name: Test simple network

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 2.4.3
2+
3+
### Chore & Maintenance
4+
* Update Node.js to 20 [#641](https://github.com/hyperledger-labs/fablo/pull/641)
5+
6+
## Documentation
7+
* Update `README.md` to provide talk links [#637](https://github.com/hyperledger-labs/fablo/pull/637)
8+
9+
110
## 2.4.2
211

312
### Bug Fixes

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-alpine3.16
1+
FROM node:20-alpine
22

33
RUN apk add --no-cache sudo shfmt
44
RUN npm install --global --silent yo

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@
22

33
<h1><img src="./logo.svg" alt="Fablo"/></h1>
44

5+
Fablo allows you to start Hyperledger Fabric network from a single config file. It's best for local development, CI processes and experimenting with various network configurations.
6+
57
Fablo supports:
68

79
* Environment: Docker
810
* RAFT, solo and BFT consensus protocols
911
* Multiple organizations and channels
10-
* Chaincode installation and upgrade
12+
* Chaincode installation and upgrade (Node, Go, Java, CCaaS)
1113
* REST API client for CA and chaincodes ([Fablo REST](https://github.com/fablo-io/fablo-rest))
1214
* [Blockchain Explorer](https://github.com/hyperledger/blockchain-explorer) which can be enabled for each organization
1315

14-
Visit [SUPPORTED_FEATURES.md](SUPPORTED_FEATURES.md) to see a list of features supported by Fablo.
16+
Visit [SUPPORTED_FEATURES.md](SUPPORTED_FEATURES.md) to see the full list of features supported by Fablo.
1517

1618
## See it in action
1719

18-
[![How to use](https://img.youtube.com/vi/JqPNozCtHkQ/0.jpg)](https://www.youtube.com/watch?v=JqPNozCtHkQ)
20+
[&gt;&gt;&gt; Watch the demo &lt;&lt;&lt;](https://www.youtube.com/watch?v=5yn3_g6Cybw)
1921

2022
## Installation
2123

@@ -25,13 +27,13 @@ You can keep the script in the root directory of your project or install it glob
2527
To get a copy of Fablo for a single project, run this command in your project root:
2628

2729
```bash
28-
curl -Lf https://github.com/hyperledger-labs/fablo/releases/download/2.4.2/fablo.sh -o ./fablo && chmod +x ./fablo
30+
curl -Lf https://github.com/hyperledger-labs/fablo/releases/download/2.4.3/fablo.sh -o ./fablo && chmod +x ./fablo
2931
```
3032

3133
To install it globally, run:
3234

3335
```bash
34-
sudo curl -Lf https://github.com/hyperledger-labs/fablo/releases/download/2.4.2/fablo.sh -o /usr/local/bin/fablo && sudo chmod +x /usr/local/bin/fablo
36+
sudo curl -Lf https://github.com/hyperledger-labs/fablo/releases/download/2.4.3/fablo.sh -o /usr/local/bin/fablo && sudo chmod +x /usr/local/bin/fablo
3537
```
3638

3739
## Getting started
@@ -441,7 +443,7 @@ The basic structure of Fablo config file is as follows:
441443
442444
```json
443445
{
444-
"$schema": "https://github.com/hyperledger-labs/fablo/releases/download/2.4.2/schema.json",
446+
"$schema": "https://github.com/hyperledger-labs/fablo/releases/download/2.4.3/schema.json",
445447
"global": { ... },
446448
"orgs": [ ... ],
447449
"channels": [ ... ],
@@ -618,7 +620,7 @@ Generated hooks are saved in `fablo-target/hooks`.
618620
619621
```yaml
620622
---
621-
"$schema": https://github.com/hyperledger-labs/fablo/releases/download/2.4.2/schema.json
623+
"$schema": https://github.com/hyperledger-labs/fablo/releases/download/2.4.3/schema.json
622624
global:
623625
fabricVersion: 2.4.2
624626
tls: false
@@ -699,3 +701,7 @@ We'd love to have you contribute! Please refer to our [contribution guidelines](
699701
Fablo was originally created at [SoftwareMill](https://softwaremill.com) by [@Hejwo](https://github.com/Hejwo/) and [@dzikowski](https://github.com/dzikowski/).
700702
In December 2021, Fablo joined [Hyperledger Labs](https://labs.hyperledger.org/).
701703
704+
## Talks
705+
* [Simplifying Fabric Dev: New Features in Fablo](https://www.youtube.com/watch?v=5yn3_g6Cybw) by [@dzikowski](https://github.com/dzikowski), [dpereowei](https://github.com/dpereowei), and [@OsamaRab3](https://github.com/OsamaRab3) (November 2025)
706+
* [Kick-off your Hyperledger Fabric network](https://www.youtube.com/watch?v=JqPNozCtHkQ) by [@Hejwo](https://github.com/Hejwo) (Feburary 2021; Fablo was called "Fabrica" at that time)
707+

docs/sample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://github.com/hyperledger-labs/fablo/releases/download/2.4.2/schema.json",
2+
"$schema": "https://github.com/hyperledger-labs/fablo/releases/download/2.4.3/schema.json",
33
"global": {
44
"fabricVersion": "2.3.2",
55
"tls": false,

docs/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"properties": {
1414
"$schema": {
15-
"const": "https://github.com/hyperledger-labs/fablo/releases/download/2.4.2/schema.json"
15+
"const": "https://github.com/hyperledger-labs/fablo/releases/download/2.4.3/schema.json"
1616
},
1717
"global": {
1818
"$id": "#/properties/global",

e2e/__snapshots__/fablo-config-hlf2-1org-1chaincode-k8s.json.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`samples/fablo-config-hlf2-1org-1chaincode-k8s.json should create proper e2e/__tmp__/samples/fablo-config-hlf2-1org-1chaincode-k8s.json.tmpdir/fablo-target/fablo-config.json from samples/fablo-config-hlf2-1org-1chaincode-k8s.json 1`] = `
44
"{
5-
"$schema": "https://github.com/hyperledger-labs/fablo/releases/download/2.4.2/schema.json",
5+
"$schema": "https://github.com/hyperledger-labs/fablo/releases/download/2.4.3/schema.json",
66
"global": {
77
"fabricVersion": "2.4.7",
88
"tls": false,
@@ -146,7 +146,7 @@ exports[`samples/fablo-config-hlf2-1org-1chaincode-k8s.json should create proper
146146
REPOSITORY="https://kfsoftware.github.io/hlf-helm-charts"
147147
STORAGE_CLASS=$(kubectl describe sc | grep Name | tr -s ' ' | cut -d ':' -f 2 | cut -d ' ' -f 2)
148148
149-
FABLO_VERSION=2.4.2
149+
FABLO_VERSION=2.4.3
150150
FABLO_BUILD=<date with git hash>
151151
FABLO_CONFIG=<absolute path>
152152
ORDERER_IMAGE=hyperledger/fabric-orderer

e2e/__snapshots__/fablo-config-hlf2-1org-1chaincode-peer-dev-mode.json.test.ts.snap

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`samples/fablo-config-hlf2-1org-1chaincode-peer-dev-mode.json should create proper e2e/__tmp__/samples/fablo-config-hlf2-1org-1chaincode-peer-dev-mode.json.tmpdir/fablo-target/fablo-config.json from samples/fablo-config-hlf2-1org-1chaincode-peer-dev-mode.json 1`] = `
44
"{
5-
"$schema": "https://github.com/hyperledger-labs/fablo/releases/download/2.4.2/schema.json",
5+
"$schema": "https://github.com/hyperledger-labs/fablo/releases/download/2.4.3/schema.json",
66
"global": {
77
"fabricVersion": "2.5.12",
88
"tls": false,
@@ -1513,7 +1513,7 @@ fi
15131513
`;
15141514
15151515
exports[`samples/fablo-config-hlf2-1org-1chaincode-peer-dev-mode.json should create proper e2e/__tmp__/samples/fablo-config-hlf2-1org-1chaincode-peer-dev-mode.json.tmpdir/fablo-target/fabric-docker/.env from samples/fablo-config-hlf2-1org-1chaincode-peer-dev-mode.json 1`] = `
1516-
"FABLO_VERSION=2.4.2
1516+
"FABLO_VERSION=2.4.3
15171517
FABLO_BUILD=<date with git hash>
15181518
FABLO_REST_VERSION=0.1.2
15191519
HYPERLEDGER_EXPLORER_VERSION=2.0.0
@@ -1562,7 +1562,6 @@ chaincodeList() {
15621562
peerChaincodeList "cli.org1.example.com" "peer0.org1.example.com:7041" "$2" # $2 is channel name
15631563
15641564
else
1565-
15661565
echo "Fail to call listChaincodes. No peer or channel found. Provided peer: $1, channel: $2"
15671566
exit 1
15681567
@@ -1648,10 +1647,7 @@ channelQuery() {
16481647
16491648
peerChannelList "cli.org1.example.com" "peer0.org1.example.com:7041"
16501649
1651-
elif
1652-
1653-
[ "$1" = "getinfo" ] && [ "$2" = "my-channel1" ] && [ "$3" = "org1" ] && [ "$4" = "peer0" ]
1654-
then
1650+
elif [ "$1" = "getinfo" ] && [ "$2" = "my-channel1" ] && [ "$3" = "org1" ] && [ "$4" = "peer0" ]; then
16551651
16561652
peerChannelGetInfo "my-channel1" "cli.org1.example.com" "peer0.org1.example.com:7041"
16571653
@@ -1667,7 +1663,6 @@ channelQuery() {
16671663
peerChannelFetchBlock "my-channel1" "cli.org1.example.com" "\${BLOCK_NAME}" "peer0.org1.example.com:7041" "$TARGET_FILE"
16681664
16691665
else
1670-
16711666
echo "$@"
16721667
echo "$1, $2, $3, $4, $5, $6, $7, $#"
16731668
printChannelsHelp

e2e/__snapshots__/fablo-config-hlf2-1org-1chaincode.json.test.ts.snap

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`samples/fablo-config-hlf2-1org-1chaincode.json should create proper e2e/__tmp__/samples/fablo-config-hlf2-1org-1chaincode.json.tmpdir/fablo-target/fablo-config.json from samples/fablo-config-hlf2-1org-1chaincode.json 1`] = `
44
"{
5-
"$schema": "https://github.com/hyperledger-labs/fablo/releases/download/2.4.2/schema.json",
5+
"$schema": "https://github.com/hyperledger-labs/fablo/releases/download/2.4.3/schema.json",
66
"global": {
77
"fabricVersion": "2.5.9",
88
"tls": false
@@ -1520,7 +1520,7 @@ fi
15201520
`;
15211521
15221522
exports[`samples/fablo-config-hlf2-1org-1chaincode.json should create proper e2e/__tmp__/samples/fablo-config-hlf2-1org-1chaincode.json.tmpdir/fablo-target/fabric-docker/.env from samples/fablo-config-hlf2-1org-1chaincode.json 1`] = `
1523-
"FABLO_VERSION=2.4.2
1523+
"FABLO_VERSION=2.4.3
15241524
FABLO_BUILD=<date with git hash>
15251525
FABLO_REST_VERSION=0.1.2
15261526
HYPERLEDGER_EXPLORER_VERSION=2.0.0
@@ -1568,14 +1568,11 @@ chaincodeList() {
15681568
15691569
peerChaincodeList "cli.org1.example.com" "peer0.org1.example.com:7041" "$2" # $2 is channel name
15701570
1571-
elif
1572-
[ "$1" = "peer1.org1.example.com" ]
1573-
then
1571+
elif [ "$1" = "peer1.org1.example.com" ]; then
15741572
15751573
peerChaincodeList "cli.org1.example.com" "peer1.org1.example.com:7042" "$2" # $2 is channel name
15761574
15771575
else
1578-
15791576
echo "Fail to call listChaincodes. No peer or channel found. Provided peer: $1, channel: $2"
15801577
exit 1
15811578
@@ -1670,16 +1667,11 @@ channelQuery() {
16701667
16711668
peerChannelList "cli.org1.example.com" "peer0.org1.example.com:7041"
16721669
1673-
elif
1674-
[ "$1" = "list" ] && [ "$2" = "org1" ] && [ "$3" = "peer1" ]
1675-
then
1670+
elif [ "$1" = "list" ] && [ "$2" = "org1" ] && [ "$3" = "peer1" ]; then
16761671
16771672
peerChannelList "cli.org1.example.com" "peer1.org1.example.com:7042"
16781673
1679-
elif
1680-
1681-
[ "$1" = "getinfo" ] && [ "$2" = "my-channel1" ] && [ "$3" = "org1" ] && [ "$4" = "peer0" ]
1682-
then
1674+
elif [ "$1" = "getinfo" ] && [ "$2" = "my-channel1" ] && [ "$3" = "org1" ] && [ "$4" = "peer0" ]; then
16831675
16841676
peerChannelGetInfo "my-channel1" "cli.org1.example.com" "peer0.org1.example.com:7041"
16851677
@@ -1694,9 +1686,7 @@ channelQuery() {
16941686
16951687
peerChannelFetchBlock "my-channel1" "cli.org1.example.com" "\${BLOCK_NAME}" "peer0.org1.example.com:7041" "$TARGET_FILE"
16961688
1697-
elif
1698-
[ "$1" = "getinfo" ] && [ "$2" = "my-channel1" ] && [ "$3" = "org1" ] && [ "$4" = "peer1" ]
1699-
then
1689+
elif [ "$1" = "getinfo" ] && [ "$2" = "my-channel1" ] && [ "$3" = "org1" ] && [ "$4" = "peer1" ]; then
17001690
17011691
peerChannelGetInfo "my-channel1" "cli.org1.example.com" "peer1.org1.example.com:7042"
17021692
@@ -1712,7 +1702,6 @@ channelQuery() {
17121702
peerChannelFetchBlock "my-channel1" "cli.org1.example.com" "\${BLOCK_NAME}" "peer1.org1.example.com:7042" "$TARGET_FILE"
17131703
17141704
else
1715-
17161705
echo "$@"
17171706
echo "$1, $2, $3, $4, $5, $6, $7, $#"
17181707
printChannelsHelp

0 commit comments

Comments
 (0)