Unverified Commit d0449072 authored by irwinsun's avatar irwinsun Committed by GitHub
Browse files

Merge pull request #4770 from vuuv/issue_4526

chore: 在蓝鲸社区版部署CodeCC #4526
parents 9a9fcb69 4b778a4b
Showing with 4 additions and 2 deletions
+4 -2
......@@ -182,6 +182,8 @@ setup_codecc_assembly (){
# schedule 需要额外的数据文件.
setup_codecc_schedule (){
local proj=$1
setup_codecc__ms_common "$proj" || return 11
check_empty_var BK_CODECC_FILE_DATA_PATH || return 15
# 判断节点数量.
if [ "${BK_CODECC_SCHEDULE_IP_COMMA//,/}" != "${BK_CODECC_SCHEDULE_IP_COMMA}" ]; then
......@@ -223,8 +225,8 @@ setup_codecc_gateway (){
update_link_to_target "$gateway_dir/$temp_dir" "$gateway_data_dir/$temp_dir" || return 3
done
# 尝试规避codecc复用ci-gateway时devops.server.conf不存在的问题.
if grep -Fwq devops.server.conf conf/nginx.conf &>/dev/null; then
touch "$gateway_dir/conf/devops.server.conf"
if grep -Fwq "devops.server.conf" "$gateway_dir/core/nginx.conf"; then
touch "$gateway_dir/core/devops.server.conf"
fi
# 在全部 codecc-gateway 节点上注册主入口域名: bk-codecc.service.consul, 用于在集群内提供web服务.
if [ -x $CTRL_DIR/bin/reg_consul_svc ]; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment