mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
Run k8s sample network tests against latest MAJOR.MINOR release of fabric, CA docker hub images.
Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
This commit is contained in:
parent
d16805745f
commit
d8aec47e05
3 changed files with 3 additions and 9 deletions
|
|
@ -12,12 +12,6 @@ export CLIENT_LANGUAGE=${CLIENT_LANGUAGE:-typescript}
|
||||||
export CHAINCODE_LANGUAGE=${CHAINCODE_LANGUAGE:-java}
|
export CHAINCODE_LANGUAGE=${CHAINCODE_LANGUAGE:-java}
|
||||||
export TEST_NETWORK_CHAINCODE_BUILDER=${CHAINCODE_BUILDER:-ccaas}
|
export TEST_NETWORK_CHAINCODE_BUILDER=${CHAINCODE_BUILDER:-ccaas}
|
||||||
|
|
||||||
# Fabric version and Docker registry source: use the latest stable tag image from JFrog
|
|
||||||
export FABRIC_VERSION=${FABRIC_VERSION:-2.4}
|
|
||||||
export TEST_NETWORK_FABRIC_CONTAINER_REGISTRY=hyperledger-fabric.jfrog.io
|
|
||||||
export TEST_NETWORK_FABRIC_VERSION=amd64-${FABRIC_VERSION}-stable
|
|
||||||
export TEST_NETWORK_FABRIC_CA_VERSION=amd64-${FABRIC_VERSION}-stable
|
|
||||||
|
|
||||||
# test-network-k8s parameters
|
# test-network-k8s parameters
|
||||||
export TEST_TAG=$(git describe)
|
export TEST_TAG=$(git describe)
|
||||||
export TEST_NETWORK_KIND_CLUSTER_NAME=${TEST_NETWORK_KIND_CLUSTER_NAME:-kind}
|
export TEST_NETWORK_KIND_CLUSTER_NAME=${TEST_NETWORK_KIND_CLUSTER_NAME:-kind}
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ function context() {
|
||||||
export ${name}="${!override_name:-${default_value}}"
|
export ${name}="${!override_name:-${default_value}}"
|
||||||
}
|
}
|
||||||
|
|
||||||
context FABRIC_VERSION 2.4.4
|
context FABRIC_VERSION 2.4
|
||||||
context FABRIC_CA_VERSION 1.5.5
|
context FABRIC_CA_VERSION 1.5
|
||||||
|
|
||||||
context CLUSTER_RUNTIME kind # or k3s for Rancher
|
context CLUSTER_RUNTIME kind # or k3s for Rancher
|
||||||
context CONTAINER_CLI docker # or nerdctl for containerd
|
context CONTAINER_CLI docker # or nerdctl for containerd
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ function check_prereqs() {
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
echo "Downloading LATEST Fabric binaries and config"
|
echo "Downloading LATEST Fabric binaries and config"
|
||||||
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/bootstrap.sh \
|
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/bootstrap.sh \
|
||||||
| bash -s -- $FABRIC_VERSION $FABRIC_CA_VERSION -s -d
|
| bash -s -- -s -d
|
||||||
|
|
||||||
# remove sample config files extracted by the installation script
|
# remove sample config files extracted by the installation script
|
||||||
rm config/configtx.yaml
|
rm config/configtx.yaml
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue