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
1108f052
Commit
1108f052
authored
Aug 05, 2019
by
xuezj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试java
parent
a3f6d396
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
java.sh
tke/java.sh
+11
-2
No files found.
tke/java.sh
View file @
1108f052
...
@@ -12,8 +12,6 @@ package_path="${module_path}/app.jar"
...
@@ -12,8 +12,6 @@ package_path="${module_path}/app.jar"
config_path
=
"
${
module_path
}
/application.properties"
config_path
=
"
${
module_path
}
/application.properties"
log_path
=
"/home/quant_group/logs"
log_path
=
"/home/quant_group/logs"
rm
-rf
${
log_path
}
/
*
echo
192.168.4.50 eos.quantgroups.com
>>
/etc/hosts
echo
192.168.4.50 eos.quantgroups.com
>>
/etc/hosts
echo
172.17.1.7 apollo-dev.quantgroups.com
>>
/etc/hosts
echo
172.17.1.7 apollo-dev.quantgroups.com
>>
/etc/hosts
echo
172.20.3.11 sentry.quantgroups.com
>>
/etc/hosts
echo
172.20.3.11 sentry.quantgroups.com
>>
/etc/hosts
...
@@ -63,6 +61,17 @@ fi
...
@@ -63,6 +61,17 @@ fi
echo
"
$finalCmd
"
>
java_command
echo
"
$finalCmd
"
>
java_command
# 日志挂载到了/home/logs下
# 创建新目录,并把/home/quant_group/logs指向新目录
if
[[
$NAMESPACE
==
'cube'
||
$NAMESPACE
==
'fe'
]]
;
then
logdir
=
"/home/logs/
${
HOSTNAME
}
"
mkdir
-p
"
${
logdir
}
"
echo
"创建日志目录:
$logdir
"
rm
-rf
"logs"
ln
-s
"
${
logdir
}
"
"
${
log_path
}
"
fi
if
[[
$DEBUG
==
1
]]
;
then
if
[[
$DEBUG
==
1
]]
;
then
echo
'debug'
echo
'debug'
nohup
$finalCmd
&
nohup
$finalCmd
&
...
...
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