mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-26 03:25:09 +00:00
install fabric images to containerd with 'nerdctl' pull
Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
This commit is contained in:
parent
7215911159
commit
721c9fce7f
1 changed files with 9 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ begins_with_short_option()
|
||||||
print_help()
|
print_help()
|
||||||
{
|
{
|
||||||
printf 'Usage: %s [-f|--fabric-version <arg>] [-c|--ca-version <arg>] <comp-1> [<comp-2>] ... [<comp-n>] ...\n' "$0"
|
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' "-f, --fabric-version: FabricVersion (default: '2.4.0')"
|
||||||
printf '\t%s\n' "-c, --ca-version: Fabric CA Version (default: '1.5.2')"
|
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
|
pullImages
|
||||||
fi
|
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
|
if [[ "${_arg_comp[@]}" =~ d(ocker)? ]]; then
|
||||||
echo
|
echo
|
||||||
echo "Pull Hyperledger Fabric docker images"
|
echo "Pull Hyperledger Fabric docker images"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue