Skip to content

Commit

Permalink
Upgrade to Fabric 2.5.4 and Fabric-ca 1.5.7
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
  • Loading branch information
mbrandenburger committed Oct 6, 2023
1 parent c383233 commit 455d434
Show file tree
Hide file tree
Showing 17 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Make sure that you have the following required dependencies installed:
* [Intel Software Guard Extensions SSL](https://github.com/intel/intel-sgx-ssl)
(we recommend using branch `lin_2.10_1.1.1g` OpenSSL `1.1.1g`)
* Hyperledger [Fabric](https://github.com/hyperledger/fabric/tree/v2.3.3) v2.3.3
* Hyperledger [Fabric](https://github.com/hyperledger/fabric/tree/v2.5.4) v2.5.4
* Clang-format 6.x or higher
Expand Down Expand Up @@ -345,15 +345,15 @@ export PROTOC_CMD=/usr/local/proto3/bin/protoc
#### Hyperledger Fabric
Our project fetches the latest supported Fabric binaries during the build process automatically.
However, if you want to use your own Fabric binaries, please checkout Fabric 2.3.3 release using the following commands:
However, if you want to use your own Fabric binaries, please checkout Fabric 2.5.4 release using the following commands:
```bash
export FABRIC_PATH=$GOPATH/src/github.com/hyperledger/fabric
git clone https://github.com/hyperledger/fabric.git $FABRIC_PATH
cd $FABRIC_PATH; git checkout tags/v2.3.3
cd $FABRIC_PATH; git checkout tags/v2.5.4
```
Note that Fabric Private Chaincode may not work with the Fabric `main` branch.
Therefore, make sure you use the Fabric `v2.3.3` tag.
Therefore, make sure you use the Fabric `v2.5.4` tag.
Make sure the source of Fabric is in your `$GOPATH`.
## Build Fabric Private Chaincode
Expand Down
2 changes: 1 addition & 1 deletion config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ PLANTUML_IMG_FORMAT ?= png # pdf / png / svg
#--------------------------------------------------
PROJECT_NAME=fabric-private-chaincode

export FABRIC_VERSION ?= 2.5.3
export FABRIC_VERSION ?= 2.5.4

export FPC_VERSION := main
export FPC_CCENV_IMAGE ?= hyperledger/fabric-private-chaincode-ccenv:$(FPC_VERSION)
Expand Down
4 changes: 2 additions & 2 deletions fabric/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ To clean the native build, type `cd $FPC_PATH/fabric; make clean-native`.
### Wrong Fabric version
```
Patching Fabric ...
Aborting! Tag on current HEAD () does not match expected tag/v2.3.3!
Aborting! Tag on current HEAD () does not match expected tag/v2.5.4!
...
```

Seems that your Fabric is on the wrong branch.
Try to run `pushd $FABRIC_PATH; git checkout tags/v2.3.3; popd;` followed by `make` again.
Try to run `pushd $FABRIC_PATH; git checkout tags/v2.5.3; popd;` followed by `make` again.
2 changes: 1 addition & 1 deletion samples/chaincode/simple-asset-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ git clone https://github.com/hyperledger/fabric-samples
cd $FPC_PATH/samples/deployment/test-network/fabric-samples
# no we pick a specific version here to have stable experience :)
git checkout -b "works" 98028c7
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.3.3 1.4.9 -s
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.5.4 1.5.7 -s
cd $FPC_PATH/samples/deployment/test-network
./setup.sh
```
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ If you have installed them somewhere else on your system, please set `FABIC_BIN_
For instance, you can download the binaries and use them by following the commands:
```bash
cd $FPC_PATH/samples/deployment/k8s
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.3.3 1.4.9 -d -s
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.5.4 1.5.7 -d -s
export FABRIC_BIN_DIR=$(pwd)/bin
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
value: /var/hyperledger/orderer/tls/server.key
- name: ORDERER_GENERAL_CLUSTER_ROOTCAS
value: "[/var/hyperledger/orderer/tls/ca.crt]"
image: hyperledger/fabric-orderer:2.3.3
image: hyperledger/fabric-orderer:2.5.4
name: orderer
ports:
- containerPort: 7050
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
value: /var/hyperledger/orderer/tls/server.key
- name: ORDERER_GENERAL_CLUSTER_ROOTCAS
value: "[/var/hyperledger/orderer/tls/ca.crt]"
image: hyperledger/fabric-orderer:2.3.3
image: hyperledger/fabric-orderer:2.5.4
name: orderer
ports:
- containerPort: 7050
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
value: /var/hyperledger/orderer/tls/server.key
- name: ORDERER_GENERAL_CLUSTER_ROOTCAS
value: "[/var/hyperledger/orderer/tls/ca.crt]"
image: hyperledger/fabric-orderer:2.3.3
image: hyperledger/fabric-orderer:2.5.4
name: orderer
ports:
- containerPort: 7050
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/org1/org1-cli-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
configMapKeyRef:
name: chaincode-config
key: FPC_MRENCLAVE
image: hyperledger/fabric-tools:2.3.3
image: hyperledger/fabric-tools:2.5.4
name: cli
tty: true
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/org1/org1-peer0-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
value: 0.0.0.0:9443
- name: CORE_METRICS_PROVIDER
value: prometheus
image: hyperledger/fabric-peer:2.3.3
image: hyperledger/fabric-peer:2.5.4
name: peer0
ports:
- containerPort: 7051
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/org2/org2-cli-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
configMapKeyRef:
name: chaincode-config
key: FPC_MRENCLAVE
image: hyperledger/fabric-tools:2.3.3
image: hyperledger/fabric-tools:2.5.4
name: cli
tty: true
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/org2/org2-peer0-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
value: 0.0.0.0:9443
- name: CORE_METRICS_PROVIDER
value: prometheus
image: hyperledger/fabric-peer:2.3.3
image: hyperledger/fabric-peer:2.5.4
name: peer0
ports:
- containerPort: 7051
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/org3/org3-cli-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
configMapKeyRef:
name: chaincode-config
key: FPC_MRENCLAVE
image: hyperledger/fabric-tools:2.3.3
image: hyperledger/fabric-tools:2.5.4
name: cli
tty: true
volumeMounts:
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/k8s/org3/org3-peer0-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
value: 0.0.0.0:9443
- name: CORE_METRICS_PROVIDER
value: prometheus
image: hyperledger/fabric-peer:2.3.3
image: hyperledger/fabric-peer:2.5.4
name: peer0
ports:
- containerPort: 7051
Expand Down
2 changes: 1 addition & 1 deletion samples/deployment/test-network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cd $FPC_PATH/samples/deployment/test-network
git clone https://github.com/hyperledger/fabric-samples
cd $FPC_PATH/samples/deployment/test-network/fabric-samples
git checkout -b "works" 98028c7
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.3.3 1.4.9 -s
curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.5.4 1.5.7 -s
```

Before we can start the network, we need to update the Fabric peer configuration to enable FPC support.
Expand Down
2 changes: 1 addition & 1 deletion utils/docker/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ FROM hyperledger/fabric-private-chaincode-base-dev:${FPC_VERSION}

# config/build params
ARG FABRIC_REPO=https://github.com/hyperledger/fabric.git
ARG FABRIC_VERSION=2.5.3
ARG FABRIC_VERSION=2.5.4

ARG FABRIC_REL_PATH=src/github.com/hyperledger/fabric
ARG FPC_REL_PATH=src/github.com/hyperledger/fabric-private-chaincode
Expand Down
2 changes: 1 addition & 1 deletion utils/docker/dev_peer_cc-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ARG SGX_MODE

# config/build params
ARG FABRIC_REPO=https://github.com/hyperledger/fabric.git
ARG FABRIC_VERSION=2.3.3
ARG FABRIC_VERSION=2.5.4
ARG FPC_REPO_URL=https://github.com/hyperledger/fabric-private-chaincode.git
ARG FPC_REPO_BRANCH_TAG_OR_COMMIT=main
ARG GIT_USER_NAME=tester
Expand Down

0 comments on commit 455d434

Please sign in to comment.