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
e32c1674
Commit
e32c1674
authored
Sep 10, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qaapi域名替换成holmes
parent
580e1b81
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
java.sh
tke/java.sh
+10
-4
ui.sh
tke/ui.sh
+9
-3
No files found.
tke/java.sh
View file @
e32c1674
...
...
@@ -19,7 +19,8 @@ else
fi
echo
172.20.3.11 sentry.quantgroups.com
>>
/etc/hosts
dubboPort
=
`
curl
-s
-m
5 curl
'http://qaapi.liangkebang.com/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
\"
}"
`
# dubboPort=`curl -s -m 5 curl 'http://qaapi.liangkebang.com/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\"}"`
dubboPort
=
`
curl
-s
-m
5
"http://holmes.liangkebang.com/k8s/service/detail?namespace=
${
NAMESPACE
}
&serviceType=java&serviceName=
${
SYSTEM_NAME
}
"
`
if
[[
${#
dubboPort
}
==
5
]]
;
then
echo
dubboPort
echo
$dubboPort
...
...
@@ -56,9 +57,14 @@ echo "unset NAMESPACE" >> ~/.bashrc
echo
"alias log='cd logs;tail -500f *log';"
>>
~/.bashrc
source
~/.bashrc
startCmd
=
`
curl
-s
-m
5
"http://qaapi.liangkebang.com/proconfig/get_info?system_name=
${
SYSTEM_NAME
}
&key=start_command"
`
if
[[
"
$startCmd
"
==
""
||
"
$startCmd
"
=
~
'0001'
]]
;
then
echo
"获取start_command异常,请检查 http://qaapi.liangkebang.com/proconfig/get_info?system_name=
${
SYSTEM_NAME
}
&key=start_command"
# startCmd=`curl -s -m 5 "http://qaapi.liangkebang.com/proconfig/get_info?system_name=${SYSTEM_NAME}&key=start_command"`
# if [[ "$startCmd" == "" || "$startCmd" =~ '0001' ]]; then
# echo "获取start_command异常,请检查 http://qaapi.liangkebang.com/proconfig/get_info?system_name=${SYSTEM_NAME}&key=start_command"
# exit -1
# fi
startCmd
=
`
curl
-s
-m
5
"http://holmes.liangkebang.com/docker/project/get_info?projectName=
${
SYSTEM_NAME
}
&key=start_command"
`
if
[[
"
$startCmd
"
==
""
]]
;
then
echo
"获取start_command异常,请检查 http://holmes.liangkebang.com/docker/project/get_info?projectName=
${
SYSTEM_NAME
}
&key=start_command"
exit
-1
fi
...
...
tke/ui.sh
View file @
e32c1674
...
...
@@ -8,10 +8,16 @@ echo "NAMESPACE is $NAMESPACE"
# 运行qa工具
echo
"SYSTEM_NAME is
$SYSTEM_NAME
"
host
=
`
curl
-s
-m
5
"http://qaapi.liangkebang.com/proconfig/get_info?system_name=
${
SYSTEM_NAME
}
&key=host_name"
`
# host=`curl -s -m 5 "http://qaapi.liangkebang.com/proconfig/get_info?system_name=${SYSTEM_NAME}&key=host_name"`
# echo "host: ${host}"
# if [[ "$host" == "" || "$host" =~ '0001' ]]; then
# echo "获取host异常,请检查 http://qaapi.liangkebang.com/proconfig/get_info?system_name=${SYSTEM_NAME}&key=host_name"
# exit -1
# fi
host
=
`
curl
-s
-m
5
"http://holmes.liangkebang.com/docker/project/get_info?projectName=
${
SYSTEM_NAME
}
&key=host_name"
`
echo
"host:
${
host
}
"
if
[[
"
$host
"
==
""
||
"
$host
"
=
~
'0001'
]]
;
then
echo
"获取host异常,请检查 http://
qaapi.liangkebang.com/proconfig/get_info?system_n
ame=
${
SYSTEM_NAME
}
&key=host_name"
if
[[
"
$host
"
==
""
]]
;
then
echo
"获取host异常,请检查 http://
holmes.liangkebang.com/docker/project/get_info?projectN
ame=
${
SYSTEM_NAME
}
&key=host_name"
exit
-1
fi
...
...
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