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
fa6dc47b
Commit
fa6dc47b
authored
Apr 13, 2018
by
kalvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update shell
parent
8620c93b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
run.sh
dev/java/run.sh
+4
-1
No files found.
dev/java/run.sh
View file @
fa6dc47b
...
@@ -3,6 +3,7 @@ echo "java_start"
...
@@ -3,6 +3,7 @@ echo "java_start"
module_name
=
project
module_name
=
project
package_path
=
"
`
pwd
`
/
${
module_name
}
/app.jar"
package_path
=
"
`
pwd
`
/
${
module_name
}
/app.jar"
config_path
=
"
`
pwd
`
/
${
module_name
}
/application.properties"
config_path
=
"
`
pwd
`
/
${
module_name
}
/application.properties"
log_path
=
"/home/quant_group/logs"
export
NAMESPACE
=
`
cat
/var/run/secrets/kubernetes.io/serviceaccount/namespace
`
export
NAMESPACE
=
`
cat
/var/run/secrets/kubernetes.io/serviceaccount/namespace
`
echo
"NAMESPACE is
$NAMESPACE
"
echo
"NAMESPACE is
$NAMESPACE
"
...
@@ -19,6 +20,9 @@ sed -i "s#.domain.com#-$NAMESPACE.q-gp.com#g" ${config_path}
...
@@ -19,6 +20,9 @@ sed -i "s#.domain.com#-$NAMESPACE.q-gp.com#g" ${config_path}
sed
-i
"s#.quantgroup.cn#-
$NAMESPACE
.q-gp.com#g"
${
config_path
}
sed
-i
"s#.quantgroup.cn#-
$NAMESPACE
.q-gp.com#g"
${
config_path
}
sed
-i
"s#xterm.js demo#
${
SYSTEM_NAME
}
@
${
NAMESPACE
}
#"
/home/qg-xterm/demo/index.html
sed
-i
"s#xterm.js demo#
${
SYSTEM_NAME
}
@
${
NAMESPACE
}
#"
/home/qg-xterm/demo/index.html
echo
"clean log dir"
rm
-rf
"
${
log_path
}
/*"
if
[[
$CLUSTER
==
"3B"
]]
;
then
if
[[
$CLUSTER
==
"3B"
]]
;
then
echo
"java -Xmx512m -Xloggc:/tmp/
${
module_name
}
_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Denv=pro -Didc=k8s3b -jar
${
package_path
}
--worker 1 --currentWorker 1 -t --server.port=80 --spring.config.location=
${
config_path
}
>/dev/null 2>&1"
>
java_command
echo
"java -Xmx512m -Xloggc:/tmp/
${
module_name
}
_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Denv=pro -Didc=k8s3b -jar
${
package_path
}
--worker 1 --currentWorker 1 -t --server.port=80 --spring.config.location=
${
config_path
}
>/dev/null 2>&1"
>
java_command
nohup
java
-Xmx512m
-Xloggc
:/tmp/
${
module_name
}
_gc.log
-XX
:+PrintGCDetails
-XX
:+PrintGCTimeStamps
-Denv
=
pro
-Didc
=
k8s3b
-jar
${
package_path
}
--worker
1
--currentWorker
1
-t
--server
.port
=
80
--spring
.config.location
=
${
config_path
}
>
/dev/null 2>&1 &
nohup
java
-Xmx512m
-Xloggc
:/tmp/
${
module_name
}
_gc.log
-XX
:+PrintGCDetails
-XX
:+PrintGCTimeStamps
-Denv
=
pro
-Didc
=
k8s3b
-jar
${
package_path
}
--worker
1
--currentWorker
1
-t
--server
.port
=
80
--spring
.config.location
=
${
config_path
}
>
/dev/null 2>&1 &
...
@@ -26,7 +30,6 @@ if [[ $CLUSTER == "3B" ]]; then
...
@@ -26,7 +30,6 @@ if [[ $CLUSTER == "3B" ]]; then
# waiting for log
# waiting for log
count
=
0
count
=
0
log_exist
=
0
log_exist
=
0
log_path
=
"/home/quant_group/logs"
until
[[
$count
-eq
60
]]
||
[[
$log_exist
-eq
1
]]
until
[[
$count
-eq
60
]]
||
[[
$log_exist
-eq
1
]]
do
do
...
...
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