Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Bk Ci
Commits
d0449072
Unverified
Commit
d0449072
authored
3 years ago
by
irwinsun
Committed by
GitHub
3 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #4770 from vuuv/issue_4526
chore: 在蓝鲸社区版部署CodeCC #4526
parents
9a9fcb69
4b778a4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/deploy-codecc/bk-codecc-setup.sh
+4
-2
scripts/deploy-codecc/bk-codecc-setup.sh
with
4 additions
and
2 deletions
+4
-2
scripts/deploy-codecc/bk-codecc-setup.sh
+
4
-
2
View file @
d0449072
...
...
@@ -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
/co
nf
/devops.server.conf"
if
grep
-Fwq
"
devops.server.conf
"
"
$gateway_dir
/core/nginx.conf"
;
then
touch
"
$gateway_dir
/co
re
/devops.server.conf"
fi
# 在全部 codecc-gateway 节点上注册主入口域名: bk-codecc.service.consul, 用于在集群内提供web服务.
if
[
-x
$CTRL_DIR
/bin/reg_consul_svc
]
;
then
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help