1 Star 1 Fork 4

神帅/ftgo-application

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
_wait-for-services.sh 416 Bytes
一键复制 编辑 原始数据 按行查看 历史
Chris Richardson 提交于 2020-04-03 01:37 +08:00 . Eliminated the need to set DOCKER_HOST_IP
#! /bin/bash
path=$1
shift
ports=$*
echo $path
echo $ports
host=${DOCKER_HOST_IP:-localhost}
done=false
while [[ "$done" = false ]]; do
for port in $ports; do
url=http://${host}:${port}$path
curl --fail $url >& /dev/null
if [[ "$?" -eq "0" ]]; then
done=true
else
done=false
echo $url
break
fi
done
if [[ "$done" = true ]]; then
echo connected
break;
fi
echo -n .
sleep 1
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/codergit.com/ftgo-application.git
git@gitee.com:codergit.com/ftgo-application.git
codergit.com
ftgo-application
ftgo-application
master

搜索帮助