File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,10 @@ SERVICES=(
39
39
: " ${IMAGE_VERSION:= " ${SERVICE_VERSION} " } "
40
40
41
41
print_usage () {
42
- printf " %s [-p HTTP(S) PROXY HOST:PORT]\n" " $1 "
42
+ printf " %s [-uPh] [-p HTTP(S) PROXY HOST:PORT]\n" " $1 "
43
+ printf " -u build the ditto-ui as docker image\n" " $1 "
44
+ printf " -P push the built docker images\n" " $1 "
45
+ printf " -h display help\n" " $1 "
43
46
}
44
47
45
48
print_used_proxies () {
@@ -98,7 +101,9 @@ build_all_docker_images() {
98
101
for i in " ${SERVICES[@]} " ; do
99
102
build_docker_image " $i "
100
103
done
101
- build_ditto_ui_docker_image
104
+ if [[ " $BUILD_UI " == " true" ]]; then
105
+ build_ditto_ui_docker_image
106
+ fi
102
107
}
103
108
104
109
set_proxies () {
@@ -109,11 +114,14 @@ set_proxies() {
109
114
}
110
115
111
116
evaluate_script_arguments () {
112
- while getopts " p:hP " opt; do
117
+ while getopts " p:uhP " opt; do
113
118
case ${opt} in
114
119
p)
115
120
set_proxies " $OPTARG "
116
121
;;
122
+ u)
123
+ BUILD_UI=" true"
124
+ ;;
117
125
P)
118
126
PUSH_CONTAINERS=" true"
119
127
;;
@@ -130,6 +138,6 @@ evaluate_script_arguments() {
130
138
if [ 0 -eq $# ]; then
131
139
print_used_proxies
132
140
build_all_docker_images
133
- elif evaluate_script_arguments " $@ " ; then
141
+ elif evaluate_script_arguments $@ ; then
134
142
build_all_docker_images
135
143
fi
You can’t perform that action at this time.
0 commit comments