From 78a55515427a7fe75353edf1f5e0b486532e1a3c Mon Sep 17 00:00:00 2001 From: Josh Kneubuhl Date: Thu, 27 Jan 2022 11:40:05 -0500 Subject: [PATCH] install fabric images to containerd with 'nerdctl' pull Signed-off-by: Josh Kneubuhl --- test-network/install-fabric.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test-network/install-fabric.sh b/test-network/install-fabric.sh index 39221b0a..bf68f12e 100755 --- a/test-network/install-fabric.sh +++ b/test-network/install-fabric.sh @@ -48,7 +48,7 @@ begins_with_short_option() print_help() { printf 'Usage: %s [-f|--fabric-version ] [-c|--ca-version ] [] ... [] ...\n' "$0" - printf '\t%s\n' ": Component to install one or more of d[ocker]|b[inary]|s[amples]|p[podman]. If none specified, all will be installed" + printf '\t%s\n' ": Component to install one or more of d[ocker]|b[inary]|s[amples]|p[podman]|n[nerdctl]. If none specified, all will be installed" printf '\t%s\n' "-f, --fabric-version: FabricVersion (default: '2.4.0')" printf '\t%s\n' "-c, --ca-version: Fabric CA Version (default: '1.5.2')" } @@ -295,6 +295,14 @@ if [[ "${_arg_comp[@]}" =~ p(odman)? ]]; then pullImages fi +if [[ "${_arg_comp[@]}" =~ n(erdctl)? ]]; then + echo + echo "Pull Hyperledger Fabric images into containerd" + echo + CONTAINER_CLI=nerdctl + pullImages +fi + if [[ "${_arg_comp[@]}" =~ d(ocker)? ]]; then echo echo "Pull Hyperledger Fabric docker images"