1 Star 0 Fork 323

thecupangin / wecube-platform

forked from WeBank / wecube-platform 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
install.sh 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -ex
if ! docker --version &> /dev/null
then
echo "must have docker installed"
exit 1
fi
if ! docker-compose --version &> /dev/null
then
echo "must have docker-compose installed"
exit 1
fi
source wecube.cfg
sed "s~{{WECUBE_DATABASE_IMAGE_NAME}}~$database_image_name~g" docker-compose-all.tpl > docker-compose.yml
sed -i "s~{{WECUBE_IMAGE_NAME}}~$wecube_image_name~g" docker-compose.yml
sed -i "s~{{WECUBE_SERVER_PORT}}~$wecube_server_port~g" docker-compose.yml
sed -i "s~{{MYSQL_ROOT_PASSWORD}}~$database_init_password~g" docker-compose.yml
sed -i "s~{{CMDB_SERVER_URL}}~$cmdb_url~g" docker-compose.yml
sed -i "s~{{WECUBE_PLUGIN_HOSTS}}~$wecube_plugin_hosts~g" docker-compose.yml
sed -i "s~{{WECUBE_PLUGIN_HOST_PORT}}~$wecube_plugin_host_port~g" docker-compose.yml
sed -i "s~{{WECUBE_PLUGIN_HOST_USER}}~$wecube_plugin_host_user~g" docker-compose.yml
sed -i "s~{{WECUBE_PLUGIN_HOST_PWD}}~$wecube_plugin_host_pwd~g" docker-compose.yml
sed -i "s~{{S3_URL}}~$s3_url~g" docker-compose.yml
sed -i "s~{{S3_ACCESS_KEY}}~$s3_access_key~g" docker-compose.yml
sed -i "s~{{S3_SECRET_KEY}}~$s3_secret_key~g" docker-compose.yml
docker-compose -f docker-compose.yml up -d
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/thecupangin/wecube-platform.git
git@gitee.com:thecupangin/wecube-platform.git
thecupangin
wecube-platform
wecube-platform
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891