install fabric images to containerd with 'nerdctl' pull

Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
This commit is contained in:
Josh Kneubuhl 2022-01-27 11:40:05 -05:00
parent 2988f9d782
commit 78a5551542

View file

@ -48,7 +48,7 @@ begins_with_short_option()
print_help()
{
printf 'Usage: %s [-f|--fabric-version <arg>] [-c|--ca-version <arg>] <comp-1> [<comp-2>] ... [<comp-n>] ...\n' "$0"
printf '\t%s\n' "<comp>: 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' "<comp>: 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"