Commit 93a2fd93 authored by 智勇's avatar 智勇

dubboPort

parent 980db9e2
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment