Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
Privatisation_Deploy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
tianye
Privatisation_Deploy
Commits
5428de7b
Commit
5428de7b
authored
Mar 02, 2022
by
tianye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部署脚本
parent
844cdd49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
24 deletions
+26
-24
install.sh
Deploy-search-center/install.sh
+23
-21
docker-compose-searchcenter.yaml
...rch-center/search_center/docker-compose-searchcenter.yaml
+3
-3
No files found.
Deploy-search-center/install.sh
View file @
5428de7b
...
...
@@ -16,6 +16,27 @@ sudo ln -s ${sc_dir}/.env ${sc_dir}/install.ini 2>/dev/null
cd
${
sc_dir
}
compose_files
=
"-f docker-compose-base.yaml"
INSTALL_MODE
=
$1
#修改es连接信息为外部
edit_es_info
(){
echo
-e
" 使用外部ES
\n
即将修改配置...."
grep
-A
10
-w
"es:"
${
APP_CONF_DIR
}
/application.yml |
\
sed
-e
"s#host: .*#host:
${
ES_HOST
}
#g"
\
-e
"s#username: .*#username:
${
ES_USERNAME
}
#g"
\
-e
"s#password: .*#password:
${
ES_PASSWORD
}
#g"
\
-e
"s#httpPort: .*#httpPort:
${
ES_HTTP_PORT
}
#g"
\
-e
"s#tcpPort: .*#tcpPort:
${
ES_TCP_PORT
}
#g"
}
#修改mq信息为外部
edit_mq_info
(){
echo
-e
" 使用外部MQ
\n
即将修改配置...."
grep
-A
6
-w
"rabbitmq:"
${
APP_CONF_DIR
}
/application.yml |
\
sed
-e
"s#host: .*#host:
${
MQ_HOST
}
#g"
\
-e
"s#username: .*#username:
${
MQ_USERNAME
}
#g"
\
-e
"s#password: .*#password:
${
MQ_PASSWORD
}
#g"
\
-e
"s#virtual-host: .*#virtual-host:
${
MQ_VHOST
}
#g"
}
case
${
INSTALL_MODE
}
in
all_install
)
...
...
@@ -31,6 +52,7 @@ server_controller_install)
echo
"错误模式-请重新输入"
exit
127
esac
#是否使用外部组件
if
[
${
INSTALL_MODE
}
==
"all_install"
]
;
then
sudo
docker-compose
${
compose_files
}
up
...
...
@@ -62,26 +84,6 @@ elif [ ${INSTALL_MODE} == "server_controller_install" ];then
fi
#修改es连接信息为外部
edit_es_info
()
{
echo
-e
" 使用外部ES
\n
即将修改配置...."
grep
-A
10
-w
"es:"
${
APP_CONF_DIR
}
/application.yml |
\
sed
-e
"s#host: .*#host:
${
ES_HOST
}
#g"
\
-e
"s#username: .*#username:
${
ES_USERNAME
}
#g"
\
-e
"s#password: .*#password:
${
ES_PASSWORD
}
#g"
\
-e
"s#httpPort: .*#httpPort:
${
ES_HTTP_PORT
}
#g"
\
-e
"s#tcpPort: .*#tcpPort:
${
ES_TCP_PORT
}
#g"
}
#修改mq信息为外部
edit_mq_info
()
{
echo
-e
" 使用外部MQ
\n
即将修改配置...."
grep
-A
6
-w
"rabbitmq:"
${
APP_CONF_DIR
}
/application.yml |
\
sed
-e
"s#host: .*#host:
${
MQ_HOST
}
#g"
\
-e
"s#username: .*#username:
${
MQ_USERNAME
}
#g"
\
-e
"s#password: .*#password:
${
MQ_PASSWORD
}
#g"
\
-e
"s#virtual-host: .*#virtual-host:
${
MQ_VHOST
}
#g"
}
echo
${
MQ_ISUSE_STATUS
}
Deploy-search-center/search_center/docker-compose-searchcenter.yaml
View file @
5428de7b
...
...
@@ -13,8 +13,8 @@ services:
tty
:
true
ports
:
-
"
8004:9001"
depends_on
:
-
elasticsearch
-
rabbitmq
#
depends_on:
#
- elasticsearch
#
- rabbitmq
networks
:
-
sc_net
Write
Preview
Markdown
is supported
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