Skip to content

Commit ba760de

Browse files
authored
Merge pull request #315 from dzikowski/node16-dco
Node16 dco + merges
2 parents dfa1ae9 + 9645a3d commit ba760de

File tree

42 files changed

+15370
-434
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+15370
-434
lines changed

.nvmrc

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

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 1.1.0-unstable
2+
3+
### Features
4+
* Support Fabric Gateway since Fabric 2.4 [#305](https://github.com/hyperledger-labs/fablo/issues/305)
5+
* Introduce pre-restore hook
6+
* Add 2.4.2 to supported Hyperledger Fabric versions
7+
* Update Node.js runtime compatibility ([details](https://github.com/hyperledger-labs/fablo/issues/274))
8+
* Add `fabricNodeenvVersion` global configuration
9+
10+
### Fixes
11+
12+
### Chore & Maintenance
13+
114
## 1.0.2
215

316
### Features

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14.16-alpine3.12
1+
FROM node:18-alpine3.14
22

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

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ executeYeomanCommand() {
77

88
# cleanup yeoman files after execution
99
# shellcheck disable=SC2064
10-
trap "rm -rf \"$yeoman_target_dir/.cache\" \"$yeoman_target_dir/.config\"" EXIT
10+
trap "rm -rf \"$yeoman_target_dir/.cache\" \"$yeoman_target_dir/.config\" \"$yeoman_target_dir/.npm\"" EXIT
1111

1212
if [ "$(id -u)" = 0 ]; then
1313
# root user detected, running as yeoman user

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/softwaremill/fablo/releases/download/1.0.2/schema.json",
2+
"$schema": "https://github.com/softwaremill/fablo/releases/download/1.0.3-unstable/schema.json",
33
"global": {
44
"fabricVersion": "2.3.2",
55
"tls": false

docs/schema.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"properties": {
1414
"$schema": {
15-
"const": "https://github.com/softwaremill/fablo/releases/download/1.0.2/schema.json"
15+
"const": "https://github.com/softwaremill/fablo/releases/download/1.0.3-unstable/schema.json"
1616
},
1717
"global": {
1818
"$id": "#/properties/global",
@@ -56,9 +56,11 @@
5656
"2.3.2",
5757
"2.3.3",
5858
"2.4.0",
59-
"2.4.1"
59+
"2.4.1",
60+
"2.4.2",
61+
"2.4.3"
6062
],
61-
"default": "2.4.1"
63+
"default": "2.4.2"
6264
},
6365
"tls": {
6466
"$id": "#/properties/global/properties/tls",

e2e-network/TEST_CASES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
| Test case | 01-simple | 02-raft | 03-private| 04-snapshot |
44
| ------------------------- |:---------:|:---------:|:---------:|:-----------:|
5-
| Fabric versions | 2.4.0 | 2.3.2 | 1.4.11 | 2.3.3 |
5+
| Fabric versions | 2.4.0 | 2.3.2 | 1.4.11 | 2.3.3/2.4.2 |
66
| TLS | no | yes | no | yes |
77
| Channel capabilities | v2 | v2 | v1_4_3 | v2 |
88
| Consensus | solo | RAFT | solo | RAFT |

e2e-network/test-04-snapshot.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,13 @@ expectInvokeRest "$fablo_rest_org1 $user_token" "my-channel1" "chaincode1" \
101101
"KVContract:getPrivateMessage" '["_implicit_org_Org1MSP"]' \
102102
'{"success":"RHIgUGFtZWxhIElzbGV5"}'
103103

104+
# restore hook to update fabric version
105+
hook_command="perl -i -pe 's/FABRIC_VERSION=2\.3\.3/FABRIC_VERSION=2\.4\.2/g' ./fablo-target/fabric-docker/.env"
106+
104107
# prune the network and restore from snapshot
105108
(cd "$TEST_TMP" &&
106109
"$FABLO_HOME/fablo.sh" prune &&
107-
"$FABLO_HOME/fablo.sh" restore "$snapshot_name" &&
110+
"$FABLO_HOME/fablo.sh" restore "$snapshot_name" "$hook_command" &&
108111
"$FABLO_HOME/fablo.sh" start
109112
)
110113
waitForChaincode "cli.org1.example.com" "peer0.org1.example.com:7041" "my-channel1" "chaincode1" "0.0.1"

0 commit comments

Comments
 (0)