1 Star 0 Fork 14

神奇的502/spring-cloud-base

forked from /spring-cloud-base 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
run.sh 987 Bytes
一键复制 编辑 原始数据 按行查看 历史
提交于 2017-06-21 17:44 . revise
#!/usr/bin/env bash
set -e
# Build the project and docker images
#sudo mvn clean package
DOCKER_IP=127.0.0.1
# Remove existing containers
docker-compose stop
docker-compose rm -f
docker-compose up -d rabbitmq
# Start the discovery service next and wait
docker-compose up -d registry
while [ -z ${DISCOVERY_SERVICE_READY} ]; do
echo "Waiting for registry service..."
if [ "$(curl --silent $DOCKER_IP:8761/health 2>&1 | grep -q '\"status\":\"UP\"'; echo $?)" = 0 ]; then
DISCOVERY_SERVICE_READY=true;
fi
sleep 2
done
# Start the config service first and wait for it to become available
docker-compose up -d config
while [ -z ${CONFIG_SERVICE_READY} ]; do
echo "Waiting for config service..."
if [ "$(curl --silent $DOCKER_IP:8888/health 2>&1 | grep -q '\"status\":\"UP\"'; echo $?)" = 0 ]; then
CONFIG_SERVICE_READY=true;
fi
sleep 2
done
# Start the other containers
docker-compose up -d
# Attach to the log output of the cluster
docker-compose logs
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/coldxiangyu/spring-cloud-base.git
git@gitee.com:coldxiangyu/spring-cloud-base.git
coldxiangyu
spring-cloud-base
spring-cloud-base
master

搜索帮助