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
93a2fd93
Commit
93a2fd93
authored
Dec 13, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dubboPort
parent
980db9e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
35 deletions
+8
-35
java.sh
tke/java.sh
+8
-35
No files found.
tke/java.sh
View file @
93a2fd93
...
@@ -19,6 +19,14 @@ else
...
@@ -19,6 +19,14 @@ else
fi
fi
echo
172.20.3.11 sentry.quantgroups.com
>>
/etc/hosts
echo
172.20.3.11 sentry.quantgroups.com
>>
/etc/hosts
dubboPort
=
`
curl
-s
-m
5 curl
'http://192.168.28.179:3003/k8s/service/details'
-H
'cluster: qa'
-H
'content-type: application/json;charset=UTF-8'
--data-binary
"{
\"
serviceName
\"
:
\"
${
SYSTEM_NAME
}
\"
,
\"
namespace
\"
:
\"
${
NAMESPACE
}
\"
,
\"
type
\"
:
\"
java
\"
,
\"
key
\"
:
\"
port_20880
\"
}"
`
if
[[
${#
dubboPort
}
==
5
]]
;
then
echo
dubboPort
echo
$dubboPort
export
DUBBO_PORT_TO_REGISTRY
=
$dubboPort
echo
"export DUBBO_PORT_TO_REGISTRY=
$dubboPort
"
>>
~/.bashrc
fi
#OLD_IFS="$IFS"
#OLD_IFS="$IFS"
#IFS="&"
#IFS="&"
#array=($HOSTS)
#array=($HOSTS)
...
@@ -64,41 +72,6 @@ if [[ $MOCK == 1 ]];then
...
@@ -64,41 +72,6 @@ if [[ $MOCK == 1 ]];then
finalCmd
=
`
echo
$finalCmd
|
sed
's#k8s#k8s-mock#g'
`
finalCmd
=
`
echo
$finalCmd
|
sed
's#k8s#k8s-mock#g'
`
fi
fi
# basicCmd="java -Xmx512m -XX:CompressedClassSpaceSize=128m -Xloggc:/tmp/${module_name}_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Dtest=true"
# basicRichCmd="java -Xmx1024m -XX:CompressedClassSpaceSize=128m -Xloggc:/tmp/${module_name}_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Dtest=true"
# debugCmd="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005"
# if [[ $CLUSTER == 'qke' ]]; then
# apolloCmd="-Denv=dev -Didc=k8s -DNAMESPACE=${NAMESPACECLUSTER} -Dapollo.longPollingInitialDelayInMills=200000"
# apolloMockCmd="-Denv=dev -Didc=k8s-mock -DNAMESPACE=${NAMESPACECLUSTER} -Dapollo.longPollingInitialDelayInMills=200000"
# else
# apolloCmd="-Denv=dev -Didc=k8s -DNAMESPACE=${namespace} -Dapollo.longPollingInitialDelayInMills=200000"
# apolloMockCmd="-Denv=dev -Didc=k8s-mock -DNAMESPACE=${namespace} -Dapollo.longPollingInitialDelayInMills=200000"
# fi
# # -jar选项需要在调试和apollo选项后面
# jarCmd="-jar ${package_path} --worker 1 --currentWorker 1 -t --server.port=80"
# logCmd="-Dlogging.config=classpath:logback-dev.xml"
# finalCmd=""
# if [[ $SYSTEM_NAME == 'gu-bei' || $SYSTEM_NAME == 'clotho' ]]; then
# if [[ $MOCK == 1 ]];then
# finalCmd="$basicCmd $debugCmd $apolloMockCmd $jarCmd --spring.config.location=${config_path}"
# else
# finalCmd="$basicCmd $debugCmd $apolloCmd $jarCmd --spring.config.location=${config_path}"
# fi
# elif [[ $SYSTEM_NAME == 'gateway-mgmt' || $SYSTEM_NAME == 'gateway-web' || $SYSTEM_NAME == 'comment-service-impl' || $SYSTEM_NAME == 'pcm' || $SYSTEM_NAME == 'acs-batch' || $SYSTEM_NAME == 'acs-quartz' || $SYSTEM_NAME == 'acs-service' || $SYSTEM_NAME == 'acs-web' || $SYSTEM_NAME == 'app-server' || $SYSTEM_NAME == 'smart-recruitment' || $SYSTEM_NAME == 'lcs' ]]; then
# # 不能指定config.location
# finalCmd="$basicCmd $debugCmd $apolloCmd $jarCmd"
# elif [[ $SYSTEM_NAME == 'xyqb-mall' ]]; then
# # xyqb-mall打印调试信息
# finalCmd="$basicCmd $debugCmd $logCmd $apolloCmd $jarCmd --spring.config.location=${config_path}"
# elif [[ $SYSTEM_NAME == 'smart-recruitment-spyder' ]]; then
# # 调大内存限制
# finalCmd="$basicRichCmd $debugCmd $apolloCmd $jarCmd"
# else
# finalCmd="$basicCmd $debugCmd $apolloCmd $jarCmd --spring.config.location=${config_path}"
# fi
echo
"
$finalCmd
"
echo
"
$finalCmd
"
echo
"
$finalCmd
"
>
java_command
echo
"
$finalCmd
"
>
java_command
...
...
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