Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-docker-entrypoints
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-docker-entrypoints
Commits
3fa65c18
Commit
3fa65c18
authored
Oct 10, 2019
by
智勇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.quantgroup.cn/QA/qg-docker-entrypoints
parents
643cfd05
b5402817
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
14 deletions
+38
-14
java.sh
tke/java.sh
+17
-7
nodejs.sh
tke/nodejs.sh
+21
-7
No files found.
tke/java.sh
View file @
3fa65c18
...
...
@@ -12,13 +12,23 @@ package_path="${module_path}/app.jar"
config_path
=
"
${
module_path
}
/application.properties"
log_path
=
"/home/quant_group/logs"
echo
192.168.4.50 eos.quantgroups.com
>>
/etc/hosts
if
[[
$CLUSTER
==
'qke'
]]
;
then
echo
172.30.3.209 apollo-dev.quantgroups.com
>>
/etc/hosts
else
echo
172.17.1.7 apollo-dev.quantgroups.com
>>
/etc/hosts
fi
echo
172.20.3.11 sentry.quantgroups.com
>>
/etc/hosts
#echo 192.168.4.50 eos.quantgroups.com >> /etc/hosts
#if [[ $CLUSTER == 'qke' ]]; then
# echo 172.30.3.209 apollo-dev.quantgroups.com >> /etc/hosts
#else
# echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts
#fi
#echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
OLD_IFS
=
"
$IFS
"
IFS
=
"&"
array
=(
$HOSTS
)
IFS
=
"
$OLD_IFS
"
for
var
in
${
array
[@]
}
do
echo
$var
|sed
"s#=># #g"
>>
/etc/hosts
done
# echo 172.30.3.206 apollo-dev.quantgroups.com >> /etc/hosts
# echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
...
...
tke/nodejs.sh
View file @
3fa65c18
...
...
@@ -9,14 +9,28 @@ cd ${package_path}
echo
"echo host"
OLD_IFS
=
"
$IFS
"
IFS
=
"&"
array
=(
$HOSTS
)
IFS
=
"
$OLD_IFS
"
for
var
in
${
array
[@]
}
do
echo
$var
|sed
"s#=># #g"
>>
/etc/hosts
done
echo
192.168.4.50 eos.quantgroups.com
>>
/etc/hosts
# qke直连apollo服务
if
[[
$CLUSTER
==
'qke'
]]
;
then
echo
172.30.3.208 apollo-dev.quantgroups.com
>>
/etc/hosts
else
echo
172.17.1.7 apollo-dev.quantgroups.com
>>
/etc/hosts
fi
# qke直连apollo服务 begin
#if [[ $CLUSTER == 'qke' ]]; then
# echo 172.30.3.208 apollo-dev.quantgroups.com >> /etc/hosts
#else
# echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts
#fi
# end
# echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
echo
"tar zxf dist.tgz -C
${
package_path
}
"
...
...
@@ -43,4 +57,4 @@ if [[ $DEBUG == 1 ]]; then
tail
-f
~/.bashrc
fi
echo
done
!!!
\ No newline at end of file
echo
done
!!!
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