File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -195,18 +195,18 @@ endif
195195 docker.elastic.co/elasticsearch/$(version); \
196196 done \
197197 }
198+ ifdef detached
198199 @{ \
199- if [[ "$(detached)" == "true" ]]; then \
200- echo "\033[2m→ Waiting for the cluster...\033[0m"; \
201- docker run --network elasticsearch --rm appropriate/curl --max-time 120 --retry 120 --retry-delay 1 --retry-connrefused --show-error --silent http://es1:9200; \
202- output="\033[2m→ Cluster ready; to remove containers:"; \
203- output="$$output docker rm -f"; \
204- for n in `seq 1 $(nodes)`; do \
205- output="$$output es$$n"; \
206- done; \
207- echo "$$output\033[0m"; \
208- fi \
200+ echo "\033[2m→ Waiting for the cluster...\033[0m"; \
201+ docker run --network elasticsearch --rm appropriate/curl --max-time 120 --retry 120 --retry-delay 1 --retry-connrefused --show-error --silent http://es1:9200; \
202+ output="\033[2m→ Cluster ready; to remove containers:"; \
203+ output="$$output docker rm -f"; \
204+ for n in `seq 1 $(nodes)`; do \
205+ output="$$output es$$n"; \
206+ done; \
207+ echo "$$output\033[0m"; \
209208 }
209+ endif
210210
211211cluster-update : # # Update the Docker image
212212 $(eval version ?= "elasticsearch-oss:8.0.0-SNAPSHOT")
You can’t perform that action at this time.
0 commit comments