check_es_ready() => wait_es_ready()
ok
{
- find $CCI_SRC/sbin/ -name "es-*-mapping.sh" -exec sh {} ;
- port=$1
local i
for i in ...
ok
- for num in {1..30}
- do
curl -s localhost:$port > /dev/null
if [ $? == "0" ]; then
break
else
sleep 2
fi
=> sleep 2 curl ... && return
good
- done
What if ES still not up? exit here?
if exit at here, 4-docker/buildall also exit, is that OK?
Thanks, Yinsi
Thanks, Fengguang
}
push_image()
2.23.0