mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-19 00:15:08 +00:00
Update Fabric to v2.5.16 and v3.1.5 (#1425)
Some checks are pending
Lint 🎉 / go (push) Waiting to run
Lint 🎉 / typescript (push) Waiting to run
Lint 🎉 / javascript (push) Waiting to run
Lint 🎉 / java (push) Waiting to run
Lint 🎉 / shell (push) Waiting to run
Test High Throughput / basic (push) Waiting to run
Test Network Basic 🔎 / basic (go) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (javascript, ca) (push) Waiting to run
Test Network HSM 🍏 / hsm (typescript) (push) Waiting to run
Kubernetes Test Network 🍒 / ccaas-external (push) Waiting to run
Kubernetes Test Network 🍒 / multi-namespace (push) Waiting to run
Kubernetes Test Network 🍒 / bft-orderer (push) Waiting to run
Test Network Off Chain 🍔 / off-chain (typescript) (push) Waiting to run
Test Network Private 🔒 / private (go, private) (push) Waiting to run
Test Network Private 🔒 / private (java, private) (push) Waiting to run
Test Network SBE 🎵 / SBE (java, sbe) (push) Waiting to run
Test Network SBE 🎵 / SBE (typescript, sbe) (push) Waiting to run
Test Network Basic 🔎 / basic (java) (push) Waiting to run
Test Network Basic 🔎 / basic (javascript) (push) Waiting to run
Test Network Basic 🔎 / basic (typescript) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (go, ca) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (go, cryptogen) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (java, ca) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (java, cryptogen) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (javascript, cryptogen) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (typescript, ca) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (typescript, cryptogen) (push) Waiting to run
Test Network Events 💡 / events (go, events) (push) Waiting to run
Test Network Events 💡 / events (java, events) (push) Waiting to run
Test Network Events 💡 / events (javascript, events) (push) Waiting to run
Test Network HSM 🍏 / hsm (go) (push) Waiting to run
Test Network HSM 🍏 / hsm (java) (push) Waiting to run
Test Network HSM 🍏 / hsm (javascript) (push) Waiting to run
Kubernetes Test Network 🍒 / ccaas-java (push) Waiting to run
Kubernetes Test Network 🍒 / k8s-builder (push) Waiting to run
Test Network Ledger 🥑 / basic (go, ledger) (push) Waiting to run
Test Network Ledger 🥑 / basic (javascript, ledger) (push) Waiting to run
Test Network Ledger 🥑 / basic (typescript, ledger) (push) Waiting to run
Test Network Off Chain 🍔 / off-chain (go) (push) Waiting to run
Test Network Off Chain 🍔 / off-chain (java) (push) Waiting to run
Test Network Off Chain 🍔 / off-chain (javascript) (push) Waiting to run
Test Network Private 🔒 / private (typescript, private) (push) Waiting to run
Test Network Secured 🔔 / secured (go, secured) (push) Waiting to run
Some checks are pending
Lint 🎉 / go (push) Waiting to run
Lint 🎉 / typescript (push) Waiting to run
Lint 🎉 / javascript (push) Waiting to run
Lint 🎉 / java (push) Waiting to run
Lint 🎉 / shell (push) Waiting to run
Test High Throughput / basic (push) Waiting to run
Test Network Basic 🔎 / basic (go) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (javascript, ca) (push) Waiting to run
Test Network HSM 🍏 / hsm (typescript) (push) Waiting to run
Kubernetes Test Network 🍒 / ccaas-external (push) Waiting to run
Kubernetes Test Network 🍒 / multi-namespace (push) Waiting to run
Kubernetes Test Network 🍒 / bft-orderer (push) Waiting to run
Test Network Off Chain 🍔 / off-chain (typescript) (push) Waiting to run
Test Network Private 🔒 / private (go, private) (push) Waiting to run
Test Network Private 🔒 / private (java, private) (push) Waiting to run
Test Network SBE 🎵 / SBE (java, sbe) (push) Waiting to run
Test Network SBE 🎵 / SBE (typescript, sbe) (push) Waiting to run
Test Network Basic 🔎 / basic (java) (push) Waiting to run
Test Network Basic 🔎 / basic (javascript) (push) Waiting to run
Test Network Basic 🔎 / basic (typescript) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (go, ca) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (go, cryptogen) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (java, ca) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (java, cryptogen) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (javascript, cryptogen) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (typescript, ca) (push) Waiting to run
Test Network BFT Orderer 🍟 / basic (typescript, cryptogen) (push) Waiting to run
Test Network Events 💡 / events (go, events) (push) Waiting to run
Test Network Events 💡 / events (java, events) (push) Waiting to run
Test Network Events 💡 / events (javascript, events) (push) Waiting to run
Test Network HSM 🍏 / hsm (go) (push) Waiting to run
Test Network HSM 🍏 / hsm (java) (push) Waiting to run
Test Network HSM 🍏 / hsm (javascript) (push) Waiting to run
Kubernetes Test Network 🍒 / ccaas-java (push) Waiting to run
Kubernetes Test Network 🍒 / k8s-builder (push) Waiting to run
Test Network Ledger 🥑 / basic (go, ledger) (push) Waiting to run
Test Network Ledger 🥑 / basic (javascript, ledger) (push) Waiting to run
Test Network Ledger 🥑 / basic (typescript, ledger) (push) Waiting to run
Test Network Off Chain 🍔 / off-chain (go) (push) Waiting to run
Test Network Off Chain 🍔 / off-chain (java) (push) Waiting to run
Test Network Off Chain 🍔 / off-chain (javascript) (push) Waiting to run
Test Network Private 🔒 / private (typescript, private) (push) Waiting to run
Test Network Secured 🔔 / secured (go, secured) (push) Waiting to run
This patch updates Fabric versions: - Fabric v2.5.16 and v3.1.5 - Fabric CA v1.5.21 fabric-ca-client v1.5.21 appends the default port 7054 when omitted, breaking register/enroll against the ingress (443). Make the CA URL port explicit (:443). Signed-off-by: Tatsuya Sato <tatsuya.sato.so@hitachi.com>
This commit is contained in:
parent
a2c40e6522
commit
119d3bc53f
10 changed files with 20 additions and 20 deletions
4
.github/actions/fsat-setup/action.yaml
vendored
4
.github/actions/fsat-setup/action.yaml
vendored
|
|
@ -12,10 +12,10 @@ inputs:
|
|||
default: v0.50.15
|
||||
fabric-version:
|
||||
description: Version of Hyperledger Fabric
|
||||
default: "2.5.15"
|
||||
default: "2.5.16"
|
||||
ca-version:
|
||||
description: Version of Hyperledger Fabric CA
|
||||
default: "1.5.15"
|
||||
default: "1.5.21"
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ inputs:
|
|||
default: 25.x
|
||||
fabric-version:
|
||||
description: Version of Hyperledger Fabric
|
||||
default: 2.5.15
|
||||
default: 2.5.16
|
||||
ca-version:
|
||||
description: Version of Hyperledger Fabric CA
|
||||
default: 1.5.15
|
||||
default: 1.5.21
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ jobs:
|
|||
# Note: The default Fabric version for CI is currently the latest LTS (v2.5.x).
|
||||
# To test BFT Orderers, Fabric v3.x is explicitly specified here.
|
||||
with:
|
||||
fabric-version: 3.1.4
|
||||
fabric-version: 3.1.5
|
||||
|
||||
- name: Run Test Network with BFT Orderers
|
||||
working-directory: test-network
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ write_files:
|
|||
# set -o pipefail
|
||||
|
||||
if [ -z $1 ]; then
|
||||
HLF_VERSION=2.5.15
|
||||
HLF_VERSION=2.5.16
|
||||
else
|
||||
HLF_VERSION=$1
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@ function context() {
|
|||
export ${name}="${!override_name:-${default_value}}"
|
||||
}
|
||||
|
||||
context FABRIC_VERSION 2.5.15
|
||||
context FABRIC_CA_VERSION 1.5.15
|
||||
context FABRIC_VERSION 2.5.16
|
||||
context FABRIC_CA_VERSION 1.5.21
|
||||
|
||||
context CLUSTER_RUNTIME kind # or k3s for Rancher
|
||||
context CONTAINER_CLI docker # or nerdctl for containerd
|
||||
|
|
|
|||
|
|
@ -21,12 +21,12 @@ fabric-ca-client register \
|
|||
--id.name $USERNAME \
|
||||
--id.secret $PASSWORD \
|
||||
--id.type client \
|
||||
--url https://$WORKSHOP_NAMESPACE-$ORG-ca-ca.$WORKSHOP_INGRESS_DOMAIN \
|
||||
--url https://$WORKSHOP_NAMESPACE-$ORG-ca-ca.$WORKSHOP_INGRESS_DOMAIN:443 \
|
||||
--tls.certfiles $WORKSHOP_CRYPTO/cas/$ORG-ca/tls-cert.pem \
|
||||
--mspdir $WORKSHOP_CRYPTO/enrollments/$ORG/users/rcaadmin/msp
|
||||
|
||||
fabric-ca-client enroll \
|
||||
--url https://$USERNAME:$PASSWORD@$WORKSHOP_NAMESPACE-$ORG-ca-ca.$WORKSHOP_INGRESS_DOMAIN \
|
||||
--url https://$USERNAME:$PASSWORD@$WORKSHOP_NAMESPACE-$ORG-ca-ca.$WORKSHOP_INGRESS_DOMAIN:443 \
|
||||
--tls.certfiles $WORKSHOP_CRYPTO/cas/$ORG-ca/tls-cert.pem \
|
||||
--mspdir $WORKSHOP_CRYPTO/enrollments/$ORG/users/$USERNAME/msp
|
||||
|
||||
|
|
|
|||
|
|
@ -332,12 +332,12 @@ fabric-ca-client register \
|
|||
--id.name $USERNAME \
|
||||
--id.secret $PASSWORD \
|
||||
--id.type client \
|
||||
--url https://$WORKSHOP_NAMESPACE-$ORG-ca-ca.$WORKSHOP_INGRESS_DOMAIN \
|
||||
--url https://$WORKSHOP_NAMESPACE-$ORG-ca-ca.$WORKSHOP_INGRESS_DOMAIN:443 \
|
||||
--tls.certfiles $WORKSHOP_CRYPTO/cas/$ORG-ca/tls-cert.pem \
|
||||
--mspdir $WORKSHOP_CRYPTO/enrollments/$ORG/users/rcaadmin/msp
|
||||
|
||||
fabric-ca-client enroll \
|
||||
--url https://$USERNAME:$PASSWORD@$WORKSHOP_NAMESPACE-$ORG-ca-ca.$WORKSHOP_INGRESS_DOMAIN \
|
||||
--url https://$USERNAME:$PASSWORD@$WORKSHOP_NAMESPACE-$ORG-ca-ca.$WORKSHOP_INGRESS_DOMAIN:443 \
|
||||
--tls.certfiles $WORKSHOP_CRYPTO/cas/$ORG-ca/tls-cert.pem \
|
||||
--mspdir $WORKSHOP_CRYPTO/enrollments/$ORG/users/$USERNAME/msp
|
||||
|
||||
|
|
|
|||
|
|
@ -39,8 +39,8 @@ First, run the following command to verify that the environment variables are co
|
|||
```shell
|
||||
$ ./network
|
||||
|
||||
Fabric image versions: Peer (3.1.4), CA (1.5.15)
|
||||
Fabric binary versions: Peer (3.1.4), CA (1.5.15)
|
||||
Fabric image versions: Peer (3.1.5), CA (1.5.21)
|
||||
Fabric binary versions: Peer (3.1.5), CA (1.5.21)
|
||||
|
||||
--- Fabric Information
|
||||
Fabric Version : 3.1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# default image tag, example: "2.5.13". "default" will download the latest. (-i)
|
||||
# default image tag, example: "2.5.16". "default" will download the latest. (-i)
|
||||
IMAGETAG="default"
|
||||
|
||||
# default ca image tag, example: "1.5.15". "default" will download the latest. (-cai)
|
||||
# default ca image tag, example: "1.5.21". "default" will download the latest. (-cai)
|
||||
CA_IMAGETAG="default"
|
||||
|
||||
# Using crpto vs CA. default is cryptogen
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ function printHelp() {
|
|||
println
|
||||
println " Flags:"
|
||||
println " Used with \033[0;32mnetwork.sh prereq\033[0m:"
|
||||
println " -i FabricVersion (default: '2.5.15')"
|
||||
println " -cai Fabric CA Version (default: '1.5.15')"
|
||||
println " -i FabricVersion (default: '2.5.16')"
|
||||
println " -cai Fabric CA Version (default: '1.5.21')"
|
||||
println
|
||||
elif [ "$USAGE" == "up" ]; then
|
||||
println "Usage: "
|
||||
|
|
@ -159,8 +159,8 @@ function printHelp() {
|
|||
println
|
||||
println " Flags:"
|
||||
println " Used with \033[0;32mnetwork.sh prereq\033[0m"
|
||||
println " -i FabricVersion (default: '2.5.15')"
|
||||
println " -cai Fabric CA Version (default: '1.5.15')"
|
||||
println " -i FabricVersion (default: '2.5.16')"
|
||||
println " -cai Fabric CA Version (default: '1.5.21')"
|
||||
println
|
||||
println " Used with \033[0;32mnetwork.sh up\033[0m, \033[0;32mnetwork.sh createChannel\033[0m:"
|
||||
println " -ca - Use Certificate Authorities to generate network crypto material"
|
||||
|
|
|
|||
Loading…
Reference in a new issue