Skip to content

Commit

Permalink
Merge pull request #300 from hyperledger-labs/v1.0.2
Browse files Browse the repository at this point in the history
V1.0.2
  • Loading branch information
dzikowski authored Apr 5, 2022
2 parents c514f6c + 7656f7f commit 41c6f96
Show file tree
Hide file tree
Showing 29 changed files with 127 additions and 44 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test-on-push.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:

Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 1.0.2

### Features

### Fixes

### Chore & Maintenance
* Expose peer and orderer Prometheus metrics

## 1.0.0

### Features
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ You may keep the script in the root directory of your project or install it glob
To install it globally:

```bash
sudo curl -Lf https://github.com/hyperledger-labs/fablo/releases/download/1.0.0/fablo.sh -o /usr/local/bin/fablo && sudo chmod +x /usr/local/bin/fablo
sudo curl -Lf https://github.com/hyperledger-labs/fablo/releases/download/1.0.2/fablo.sh -o /usr/local/bin/fablo && sudo chmod +x /usr/local/bin/fablo
```

To get a copy of Fablo for a single project, execute in the project root:

```bash
curl -Lf https://github.com/hyperledger-labs/fablo/releases/download/1.0.0/fablo.sh -o ./fablo && chmod +x ./fablo
curl -Lf https://github.com/hyperledger-labs/fablo/releases/download/1.0.2/fablo.sh -o ./fablo && chmod +x ./fablo
```

## Getting started
Expand Down Expand Up @@ -259,7 +259,7 @@ The basic structure of Fablo config file is as follows:
```json
{
"$schema": "https://github.com/hyperledger-labs/fablo/releases/download/1.0.0/schema.json",
"$schema": "https://github.com/hyperledger-labs/fablo/releases/download/1.0.2/schema.json",
"global": { ... },
"orgs": [ ... ],
"channels": [ ... ],
Expand Down Expand Up @@ -420,7 +420,7 @@ Genrated Hooks are saved in `fablo-target/hooks`.
```yaml
---
"$schema": https://github.com/hyperledger-labs/fablo/releases/download/1.0.0/schema.json
"$schema": https://github.com/hyperledger-labs/fablo/releases/download/1.0.2/schema.json
global:
fabricVersion: 2.3.0
tls: false
Expand Down
2 changes: 1 addition & 1 deletion docs/sample.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://github.com/softwaremill/fablo/releases/download/1.0.0/schema.json",
"$schema": "https://github.com/softwaremill/fablo/releases/download/1.0.2/schema.json",
"global": {
"fabricVersion": "2.3.2",
"tls": false
Expand Down
2 changes: 1 addition & 1 deletion docs/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"properties": {
"$schema": {
"const": "https://github.com/softwaremill/fablo/releases/download/1.0.0/schema.json"
"const": "https://github.com/softwaremill/fablo/releases/download/1.0.2/schema.json"
},
"global": {
"$id": "#/properties/global",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ fi
`;
exports[`samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json should create proper e2e/__tmp__/samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json.tmpdir/fablo-target/fabric-docker/.env from samples/fablo-config-hlf1.3-2orgs-1chaincode-private-data.json 1`] = `
"FABLO_VERSION=1.0.0
"FABLO_VERSION=1.0.2
FABLO_BUILD=<date with git hash>
FABLO_REST_VERSION=0.1.0
HYPERLEDGER_EXPLORER_VERSION=1.1.8
Expand Down Expand Up @@ -993,6 +993,7 @@ services:
command: orderer
ports:
- 7030:7030
- 8030:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer.example.com/peers/orderer0.group1.orderer.example.com/msp/:/var/hyperledger/orderer/msp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ fi
`;
exports[`samples/fablo-config-hlf1.4-1org-1chaincode-raft.json should create proper e2e/__tmp__/samples/fablo-config-hlf1.4-1org-1chaincode-raft.json.tmpdir/fablo-target/fabric-docker/.env from samples/fablo-config-hlf1.4-1org-1chaincode-raft.json 1`] = `
"FABLO_VERSION=1.0.0
"FABLO_VERSION=1.0.2
FABLO_BUILD=<date with git hash>
FABLO_REST_VERSION=0.1.0
HYPERLEDGER_EXPLORER_VERSION=1.1.8
Expand Down Expand Up @@ -841,6 +841,9 @@ services:
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
- GODEBUG=netdns=go
# metrics
- ORDERER_OPERATIONS_LISTENADDRESS=orderer0.group1.orderer.example.com:9440
- ORDERER_METRICS_PROVIDER=prometheus
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
Expand All @@ -853,6 +856,7 @@ services:
command: orderer
ports:
- 7030:7030
- 8030:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer.example.com/peers/orderer0.group1.orderer.example.com/msp/:/var/hyperledger/orderer/msp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ fi
`;
exports[`samples/fablo-config-hlf1.4-2orgs-1chaincode.json should create proper e2e/__tmp__/samples/fablo-config-hlf1.4-2orgs-1chaincode.json.tmpdir/fablo-target/fabric-docker/.env from samples/fablo-config-hlf1.4-2orgs-1chaincode.json 1`] = `
"FABLO_VERSION=1.0.0
"FABLO_VERSION=1.0.2
FABLO_BUILD=<date with git hash>
FABLO_REST_VERSION=0.1.0
HYPERLEDGER_EXPLORER_VERSION=1.1.8
Expand Down Expand Up @@ -1072,6 +1072,7 @@ services:
command: orderer
ports:
- 7030:7030
- 8030:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer.example.com/peers/orderer0.group1.orderer.example.com/msp/:/var/hyperledger/orderer/msp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ fi
`;
exports[`samples/fablo-config-hlf1.4-2orgs-2chaincodes-private-data.yaml should create proper e2e/__tmp__/samples/fablo-config-hlf1.4-2orgs-2chaincodes-private-data.yaml.tmpdir/fablo-target/fabric-docker/.env from samples/fablo-config-hlf1.4-2orgs-2chaincodes-private-data.yaml 1`] = `
"FABLO_VERSION=1.0.0
"FABLO_VERSION=1.0.2
FABLO_BUILD=<date with git hash>
FABLO_REST_VERSION=0.1.0
HYPERLEDGER_EXPLORER_VERSION=1.1.8
Expand Down Expand Up @@ -1042,6 +1042,7 @@ services:
command: orderer
ports:
- 7030:7030
- 8030:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer.example.com/peers/orderer0.group1.orderer.example.com/msp/:/var/hyperledger/orderer/msp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ fi
`;
exports[`samples/fablo-config-hlf1.4-2orgs-2chaincodes-raft.json should create proper e2e/__tmp__/samples/fablo-config-hlf1.4-2orgs-2chaincodes-raft.json.tmpdir/fablo-target/fabric-docker/.env from samples/fablo-config-hlf1.4-2orgs-2chaincodes-raft.json 1`] = `
"FABLO_VERSION=1.0.0
"FABLO_VERSION=1.0.2
FABLO_BUILD=<date with git hash>
FABLO_REST_VERSION=0.1.0
HYPERLEDGER_EXPLORER_VERSION=1.1.8
Expand Down Expand Up @@ -1284,6 +1284,9 @@ services:
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
- GODEBUG=netdns=go
# metrics
- ORDERER_OPERATIONS_LISTENADDRESS=orderer0.group1.orderer.example.com:9440
- ORDERER_METRICS_PROVIDER=prometheus
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
Expand All @@ -1296,6 +1299,7 @@ services:
command: orderer
ports:
- 7030:7030
- 8030:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer.example.com/peers/orderer0.group1.orderer.example.com/msp/:/var/hyperledger/orderer/msp
Expand All @@ -1315,6 +1319,9 @@ services:
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
- GODEBUG=netdns=go
# metrics
- ORDERER_OPERATIONS_LISTENADDRESS=orderer1.group1.orderer.example.com:9440
- ORDERER_METRICS_PROVIDER=prometheus
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
Expand All @@ -1327,6 +1334,7 @@ services:
command: orderer
ports:
- 7031:7031
- 8031:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer.example.com/peers/orderer1.group1.orderer.example.com/msp/:/var/hyperledger/orderer/msp
Expand All @@ -1346,6 +1354,9 @@ services:
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
- GODEBUG=netdns=go
# metrics
- ORDERER_OPERATIONS_LISTENADDRESS=orderer2.group1.orderer.example.com:9440
- ORDERER_METRICS_PROVIDER=prometheus
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
Expand All @@ -1358,6 +1369,7 @@ services:
command: orderer
ports:
- 7032:7032
- 8032:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer.example.com/peers/orderer2.group1.orderer.example.com/msp/:/var/hyperledger/orderer/msp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ fi
`;
exports[`samples/fablo-config-hlf2-1org-1chaincode-raft-explorer.json should create proper e2e/__tmp__/samples/fablo-config-hlf2-1org-1chaincode-raft-explorer.json.tmpdir/fablo-target/fabric-docker/.env from samples/fablo-config-hlf2-1org-1chaincode-raft-explorer.json 1`] = `
"FABLO_VERSION=1.0.0
"FABLO_VERSION=1.0.2
FABLO_BUILD=<date with git hash>
FABLO_REST_VERSION=0.1.0
HYPERLEDGER_EXPLORER_VERSION=1.1.8
Expand Down Expand Up @@ -812,6 +812,9 @@ services:
- ORDERER_GENERAL_LOCALMSPID=OrdererMSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
- GODEBUG=netdns=go
# metrics
- ORDERER_OPERATIONS_LISTENADDRESS=orderer0.group1.orderer.example.com:9440
- ORDERER_METRICS_PROVIDER=prometheus
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
Expand All @@ -824,6 +827,7 @@ services:
command: orderer
ports:
- 7030:7030
- 8030:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer.example.com/peers/orderer0.group1.orderer.example.com/msp/:/var/hyperledger/orderer/msp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ fi
`;
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`] = `
"FABLO_VERSION=1.0.0
"FABLO_VERSION=1.0.2
FABLO_BUILD=<date with git hash>
FABLO_REST_VERSION=0.1.0
HYPERLEDGER_EXPLORER_VERSION=1.1.8
Expand Down Expand Up @@ -774,6 +774,7 @@ services:
command: orderer
ports:
- 7030:7030
- 8030:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer.example.com/peers/orderer0.group1.orderer.example.com/msp/:/var/hyperledger/orderer/msp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ fi
`;
exports[`samples/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml should create proper e2e/__tmp__/samples/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml.tmpdir/fablo-target/fabric-docker/.env from samples/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml 1`] = `
"FABLO_VERSION=1.0.0
"FABLO_VERSION=1.0.2
FABLO_BUILD=<date with git hash>
FABLO_REST_VERSION=0.1.0
HYPERLEDGER_EXPLORER_VERSION=1.1.8
Expand Down Expand Up @@ -1718,6 +1718,9 @@ services:
- ORDERER_GENERAL_LOCALMSPID=Orderer1MSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
- GODEBUG=netdns=go
# metrics
- ORDERER_OPERATIONS_LISTENADDRESS=orderer0.group1.orderer1.com:9440
- ORDERER_METRICS_PROVIDER=prometheus
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
Expand All @@ -1730,6 +1733,7 @@ services:
command: orderer
ports:
- 7030:7030
- 8030:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer1.com/peers/orderer0.group1.orderer1.com/msp/:/var/hyperledger/orderer/msp
Expand All @@ -1749,6 +1753,9 @@ services:
- ORDERER_GENERAL_LOCALMSPID=Orderer1MSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
- GODEBUG=netdns=go
# metrics
- ORDERER_OPERATIONS_LISTENADDRESS=orderer1.group1.orderer1.com:9440
- ORDERER_METRICS_PROVIDER=prometheus
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
Expand All @@ -1761,6 +1768,7 @@ services:
command: orderer
ports:
- 7031:7031
- 8031:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer1.com/peers/orderer1.group1.orderer1.com/msp/:/var/hyperledger/orderer/msp
Expand All @@ -1780,6 +1788,9 @@ services:
- ORDERER_GENERAL_LOCALMSPID=Orderer1MSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
- GODEBUG=netdns=go
# metrics
- ORDERER_OPERATIONS_LISTENADDRESS=orderer2.group1.orderer1.com:9440
- ORDERER_METRICS_PROVIDER=prometheus
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
Expand All @@ -1792,6 +1803,7 @@ services:
command: orderer
ports:
- 7032:7032
- 8032:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer1.com/peers/orderer2.group1.orderer1.com/msp/:/var/hyperledger/orderer/msp
Expand Down Expand Up @@ -1867,6 +1879,9 @@ services:
- ORDERER_GENERAL_LOCALMSPID=Orderer2MSP
- ORDERER_GENERAL_LOCALMSPDIR=/var/hyperledger/orderer/msp
- GODEBUG=netdns=go
# metrics
- ORDERER_OPERATIONS_LISTENADDRESS=orderer0.group2.orderer2.com:9440
- ORDERER_METRICS_PROVIDER=prometheus
# enabled TLS
- ORDERER_GENERAL_TLS_ENABLED=true
- ORDERER_GENERAL_TLS_PRIVATEKEY=/var/hyperledger/orderer/tls/server.key
Expand All @@ -1879,6 +1894,7 @@ services:
command: orderer
ports:
- 7050:7050
- 8050:9440
volumes:
- ../fabric-config/config/:/var/hyperledger/config
- ../fabric-config/crypto-config/peerOrganizations/orderer2.com/peers/orderer0.group2.orderer2.com/msp/:/var/hyperledger/orderer/msp
Expand Down
Loading

0 comments on commit 41c6f96

Please sign in to comment.