test network runs on containerd AND mobyd

Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
This commit is contained in:
Josh Kneubuhl 2022-05-05 13:36:29 -04:00 committed by Dave Enyeart
parent b8a6d8efbb
commit 3a12817c4f
3 changed files with 7 additions and 5 deletions

View file

@ -86,7 +86,7 @@ To run natively on k3s, skip the creation of a KIND cluster and:
3. Initialize the Nginx ingress and cert-manager: 3. Initialize the Nginx ingress and cert-manager:
```shell ```shell
export TEST_NETWORK_CLUSTER_RUNTIME=k3s export TEST_NETWORK_CLUSTER_RUNTIME="k3s"
./network cluster-init ./network cluster-init
``` ```
@ -95,7 +95,8 @@ export TEST_NETWORK_CLUSTER_RUNTIME=k3s
- For use with containerd: - For use with containerd:
```shell ```shell
export CONTAINER_CLI=nerdctl export CONTAINER_CLI="nerdctl"
export TEST_NETWORK_CONTAINER_NAMESPACE="--namespace k8s.io"
``` ```

View file

@ -17,8 +17,9 @@ set -o errexit
# todo: allow relative paths for input arguments. # todo: allow relative paths for input arguments.
cd "$(dirname "$0")" cd "$(dirname "$0")"
export CLUSTER_RUNTIME=${TEST_NETWORK_CLUSTER_RUNTIME:-kind} # or k3s export CLUSTER_RUNTIME=${TEST_NETWORK_CLUSTER_RUNTIME:-kind} # or k3s
export CONTAINER_CLI=${CONTAINER_CLI:-docker} # or nerdctl for containerd export CONTAINER_CLI=${CONTAINER_CLI:-docker} # or nerdctl for containerd
export CONTAINER_NAMESPACE=${TEST_NETWORK_CONTAINER_NAMESPACE:-""} # or "--namespace k8s.io" for containerd / nerdctl
export FABRIC_VERSION=${TEST_NETWORK_FABRIC_VERSION:-2.4.3} export FABRIC_VERSION=${TEST_NETWORK_FABRIC_VERSION:-2.4.3}
export FABRIC_CA_VERSION=${TEST_NETWORK_FABRIC_CA_VERSION:-1.5.2} export FABRIC_CA_VERSION=${TEST_NETWORK_FABRIC_CA_VERSION:-1.5.2}

View file

@ -113,7 +113,7 @@ function build_chaincode_image() {
push_fn "Building chaincode image ${cc_image}" push_fn "Building chaincode image ${cc_image}"
docker build -t ${cc_image} ${cc_folder} $CONTAINER_CLI build ${CONTAINER_NAMESPACE} -t ${cc_image} ${cc_folder}
pop_fn pop_fn
} }