5 images
="mbt-node14-java8-docker mbt-node16-java8-docker mbt-node18-java8-docker mbt-node20-java8-docker \
6 mbt-node14-java11-docker mbt-node16-java11-docker mbt-node18-java11-docker mbt-node20-java11-docker \
7 mbt-node14-java17-docker mbt-node16-java17-docker mbt-node18-java17-docker mbt-node20-java17-docker \
8 mbt-node14-java21-docker mbt-node16-java21-docker mbt-node18-java21-docker mbt-node20-java21-docker"
10 # repositories="mbt-node14-java8-docker mbt-node16-java8-docker mbt-node18-java8-docker mbt-node20-java8-docker \
11 # mbt-node14-java11-docker mbt-node16-java11-docker mbt-node18-java11-docker mbt-node20-java11-docker \
12 # mbt-node14-java17-docker mbt-node16-java17-docker mbt-node18-java17-docker mbt-node20-java17-docker \
13 # mbt-node14-java21-docker mbt-node16-java21-docker mbt-node18-java21-docker mbt-node20-java21-docker"
15 repositories
=${images}
18 echo " Build docker images.
21 ./$(basename $0) [-b <name>]
22 ./$(basename $0) [-p <name>]
28 -b <${images//+([[:space:]])/|}|all> Build docker images.
29 -p <${repositories//+([[:space:]])/|}|all> Push docker images.
30 -c Clean docker images." 1>&2; exit 1;
34 for image
in ${images}; do
40 for repository
in ${repositories}; do
41 make docker-push-registry NAME
=${repository}
46 while getopts ":b:p:ch" option
; do
50 if [ ${name} = "all" ]; then
52 elif [ -z "${images##*$name*}" ]; then
55 echo "Error: Unknown image name as option argument '${OPTARG}'" >&2;
61 if [ ${repository} = "all" ]; then
63 elif [ -z "${repositories##*$repository*}" ]; then
64 make docker-push-registry NAME
=${repository}
66 echo "Error: Unknown repository name as option argument '${OPTARG}'" >&2;
74 echo "Error: Missing option argument for '-${OPTARG}'" >&2;
79 echo "Error: Unknown or invalid option for '-${OPTARG}'" >&2;