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
38dc4565
Commit
38dc4565
authored
Mar 02, 2022
by
tianye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitngone
parent
4acc59e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
.gitignore
.gitignore
+3
-0
install.sh
Deploy-search-center/install.sh
+33
-0
No files found.
.gitignore
0 → 100644
View file @
38dc4565
#files
*/log
*/data
\ No newline at end of file
Deploy-search-center/install.sh
View file @
38dc4565
...
@@ -14,6 +14,39 @@ echo "${env_context}">${sc_dir}/.env
...
@@ -14,6 +14,39 @@ echo "${env_context}">${sc_dir}/.env
source
${
sc_dir
}
/.env
source
${
sc_dir
}
/.env
sudo ln
-s
${
sc_dir
}
/.env
${
sc_dir
}
/install.ini 2>/dev/null
sudo ln
-s
${
sc_dir
}
/.env
${
sc_dir
}
/install.ini 2>/dev/null
compose_files
=
"-f docker-compose-base.yaml"
case
${
INSTALL_MODE
}
in
all_install
)
compose_files
=
"
${
compose_files
}
-f docker-compose-es.yaml -f docker-compose-mq.yaml -f docker-compose-searchcenter.yaml"
;;
server_install
)
compose_files
=
"
${
compose_files
}
-f docker-compose-searchcenter.yaml"
;;
server_controller_install
)
if
[
${
ES_ISUSE_STATUS
}
!=
'false'
]
;
then
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"
fi
if
[
${
MQ_ISUSE_STATUS
}
!=
'false'
]
;
then
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"
fi
;;
#是否使用外部组件
#是否使用外部组件
if
[
${
ES_ISUSE_STATUS
}
!=
'false'
]
;
then
if
[
${
ES_ISUSE_STATUS
}
!=
'false'
]
;
then
echo
-e
" 使用外部ES
\n
即将修改配置...."
echo
-e
" 使用外部ES
\n
即将修改配置...."
...
...
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