Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
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
qa-deploy-utils
Commits
c607a173
Commit
c607a173
authored
Jul 19, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitabc.xyqb.com/QA/qa-deploy-utils
parents
6b1473de
a7cab97a
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
329 additions
and
253 deletions
+329
-253
.gitignore
.gitignore
+1
-0
db_replace_ip 2.sh
db-utils/db_replace_ip 2.sh
+45
-0
1_mount_config_files.sh
qa_shell_script/1_mount_config_files.sh
+3
-1
2_get_code_by_name.sh
qa_shell_script/2_get_code_by_name.sh
+1
-1
2_get_code_by_type.sh
qa_shell_script/2_get_code_by_type.sh
+1
-1
4_build_by_name.sh
qa_shell_script/4_build_by_name.sh
+9
-17
4_build_by_type.sh
qa_shell_script/4_build_by_type.sh
+9
-15
5_restart_by_type.sh
qa_shell_script/5_restart_by_type.sh
+9
-2
get_project_config.js
qa_shell_script/config_server/get_project_config.js
+96
-68
get_project_host.sh
qa_shell_script/config_server/get_project_host.sh
+17
-0
exception_sub_shell.sh
qa_shell_script/exception_sub_shell.sh
+6
-5
20170703.sh
qa_shell_script/migrate_ENV/20170703.sh
+22
-0
remote.sh
qa_shell_script/migrate_ENV/remote.sh
+24
-0
mock_yeepay.sh
qa_shell_script/mock_yeepay.sh
+32
-0
make_frp_ini.sh
qa_shell_script/ngrok/make_frp_ini.sh
+46
-0
make_ngrok_yml.sh
qa_shell_script/ngrok/make_ngrok_yml.sh
+1
-1
ngrok_confg.yml
qa_shell_script/ngrok/ngrok_confg.yml
+0
-132
initial_mq.sh
qa_shell_script/rabbitmq/initial_mq.sh
+7
-5
sub_shell.sh
qa_shell_script/sub_shell.sh
+0
-5
No files found.
.gitignore
View file @
c607a173
/qa_shell_script/TEMP/*
.idea/
*.swp
db-utils/db_replace_ip 2.sh
0 → 100644
View file @
c607a173
# -------------------------------------------------------------------------------
# Filename: db_replace_ip.sh
# Revision: 1.1
# Date: 2017/02
# Author: dekun.dai
# Description: 该脚本根据备份sql称特定环境使用的sql
# Usage:used by ../deploy/db_replace_ip.sh
# -------------------------------------------------------------------------------
database_name
=
$1
server_host
=
$2
db_sub_backup_folder
=
$3
re_replace_ip
=
$4
public_ip
=
"www.q-gp.com"
ip_last
=
$5
pwd_path
=
"/home/qa-deploy-utils/qa_shell_script"
config_server
=
"
$pwd_path
/config_server"
echo
$server_host
cd
$db_sub_backup_folder
file_count
=
`
ls
-l
|grep
"^-"
|wc
-l
`
function
trancsHostName
()
{
if
[
"
$4
"
=
true
]
;
then
sed
-i
"s/
$2
/
$3
-
$7
.q-gp.com/g"
$5
else
sed
-i
"s/
$2
/
$6
:
$1
/g"
$5
fi
}
echo
"./* file count is
$file_count
"
if
[
"
$file_count
"
-gt
0
]
;
then
for
entry
in
./
*
do
sed
-i
"s/https/http/g"
$entry
echo
"is replace ip for db_back_file
$entry
"
var
=
`
cat
$config_server
/get_project_host.sh
`
for
v
in
${
var
[@]
}
do
i
=
${
v
//|/
}
trancsHostName i
$re_replace_ip
$entry
${
server_host
}
${
ip_last
}
done
done
fi
qa_shell_script/1_mount_config_files.sh
View file @
c607a173
...
...
@@ -49,13 +49,15 @@ else
spawn ssh root@
${
IP_host_first
}${
target_ip
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
send
\"
umount -l /home/qa-deploy-utils/qa_shell_script
\r\"
expect
\"
]#
\"
send
\"
mkdir -p /home/qa-deploy-utils/qa_shell_script
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
mount -t nfs 192.168.4.3:/home/qa-deploy-utils/qa_shell_script /home/qa-deploy-utils/qa_shell_script
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
umount
$config_files
\r\"
send
\"
umount
-l
$config_files
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
rm -rf
$config_files
\r\"
...
...
qa_shell_script/2_get_code_by_name.sh
View file @
c607a173
...
...
@@ -13,7 +13,7 @@ if [ -n "$project_folder" ];then
type
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
type
`
if
[
"
$type
"
=
"node"
]
;
then
command2
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
command2
`
command2
$
command2
fi
sh
$config_server
/show_info.sh
$project_name
pull代码
$desc
$3
cd
./
$project_name
...
...
qa_shell_script/2_get_code_by_type.sh
View file @
c607a173
...
...
@@ -16,7 +16,7 @@ function getCode()
type
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
type
`
if
[
"
$type
"
=
"node"
]
;
then
command2
=
`
node
$config_server
/get_project_config.js
-name
$project_name
-attr
command2
`
command2
$
command2
fi
cd
$project_path
project_folder
=
`
find ./
-maxdepth
1
-name
"
$project
"
`
...
...
qa_shell_script/4_build_by_name.sh
View file @
c607a173
...
...
@@ -21,10 +21,11 @@ function buildJavaProject()
{
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
target_path
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
target_path
`
sh
$config_server
/show_info.sh
$project
BUILD
$desc
$2
cd
$project_path
/
$project
rm
-rf
./target/
rm
-rf
$target_path
rm
-rf
$project
.jar
if
[[
"
$project
"
=
"xyqb"
||
"
$project
"
=
"gu-bei"
||
"
$project
"
=
"han-gu-guan"
||
"
$project
"
=
"di-ting"
||
"
$project
"
=
"xyqb-offline"
||
"
$project
"
=
"xyqb-user2"
]]
;
then
...
...
@@ -40,26 +41,17 @@ function buildJavaProject()
sed
-i
"
${
num
}
s/1.0.[0-9]-SNAPSHOT/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
# if [[ "$project" = "baitiao" ]]; then
# num=`grep -n -A1 "<artifactId>quantgroup-sms-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
# echo "----$project-----pom.xml file line: $num------------"
# sed -i "${num}s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
# fi
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
echo
"----
$project
-----pom.xml file line:
$num
------------"
sed
-i
"
${
num
}
s/1.0.6.3/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
echo
"----
$project
-----pom.xml file line:
$num
------------"
sed
-i
"
${
num
}
s/1.0.6.3/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
echo
"mvn clean package -P
${
profile
}
-Dmaven.test.skip=true"
mvn clean package
-P
${
profile
}
-Dmaven
.test.skip
=
true
if
[[
$project
==
"baitiao"
]]
;
then
mv
$project_path
/
$project
/baitiao-api/target/
*
.jar
$project_path
/
$project
/
$project
.jar
else
mv
$project_path
/
$project
/target/
*
.jar
$project_path
/
$project
/
$project
.jar
fi
echo
"
$target_path
"
mv
$project_path
/
$project
/
$target_path
/
*
.jar
$project_path
/
$project
/
$project
.jar
}
function
buildUiProject
()
...
...
qa_shell_script/4_build_by_type.sh
View file @
c607a173
...
...
@@ -18,10 +18,11 @@ function buildJavaProject()
{
project
=
$1
desc
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
desc
`
echo
target_path
=
`
node
$config_server
/get_project_config.js
-name
$project
-attr
target_path
`
sh
$config_server
/show_info.sh
$project
"打包BUILD"
$desc
$2
cd
$project_path
/
$project
rm
-rf
./target/
rm
-rf
$target_path
rm
-rf
$project
.jar
if
[[
"
$project
"
=
"xyqb"
||
"
$project
"
=
"gu-bei"
||
"
$project
"
=
"han-gu-guan"
||
"
$project
"
=
"di-ting"
||
"
$project
"
=
"xyqb-offline"
||
"
$project
"
=
"xyqb-user2"
]]
;
then
...
...
@@ -36,22 +37,15 @@ function buildJavaProject()
sed
-i
"
${
num
}
s/1.0.[0-9].[0-9]/1.0.0.
${
suffix
}
-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
# if [[ "$project" = "baitiao" ]]; then
# num=`grep -n -A1 "<artifactId>quantgroup-sms-sdk</artifactId>" $project_path/$project/pom.xml| grep "<version>" | awk -F- '{print $1}'`
# echo "----$project-----pom.xml file line: $num------------"
# sed -i "${num}s/1.0.[0-9]-SNAPSHOT/1.0.6.3-SNAPSHOT/" $project_path/$project/pom.xml
# fi
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
echo
"----
$project
-----pom.xml file line:
$num
------------"
sed
-i
"
${
num
}
s/1.0.6.3/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
if
[[
"
$project
"
=
"finance-api"
||
"
$project
"
=
"financial-system"
]]
;
then
num
=
`
grep
-n
-A1
"<artifactId>quantgroup-sms-sdk</artifactId>"
$project_path
/
$project
/pom.xml|
grep
"<version>"
|
awk
-F-
'{print $1}'
`
echo
"----
$project
-----pom.xml file line:
$num
------------"
sed
-i
"
${
num
}
s/1.0.6.3/1.0.6.3-SNAPSHOT/"
$project_path
/
$project
/pom.xml
fi
echo
"mvn clean package -P
${
profile
}
-Dmaven.test.skip=true"
mvn clean package
-P
${
profile
}
-Dmaven
.test.skip
=
true
mv
$project_path
/
$project
/target/
*
.jar
$project_path
/
$project
/
$project
.jar
mv
$project_path
/
$project
/
$target_path
/
*
.jar
$project_path
/
$project
/
$project
.jar
}
function
buildUiProject
()
...
...
qa_shell_script/5_restart_by_type.sh
View file @
c607a173
...
...
@@ -50,8 +50,15 @@ function restartJavaProject()
fi
echo
"
$run_command
"
echo
`
$run_command
`
sleep
10s
if
[[
$project
==
"redpacket"
]]
;
then
echo
`
java
-Xmx512m
-XX
:PermSize64m
-Xloggc
:/tmp/
${
project
}
.log
-XX
:+PrintGCDetails
-XX
:+PrintGCTimeStamps
-jar
${
project
}
.jar
--worker
1
--currentWorker
1
-t
-ts
>
/dev/null 2>&1 &
`
else
echo
`
java
-Xmx512m
-XX
:PermSize64m
-Xloggc
:/tmp/
${
project
}
.log
-XX
:+PrintGCDetails
-XX
:+PrintGCTimeStamps
-jar
${
project
}
.jar
--worker
1
--currentWorker
1
-t
>
/dev/null 2>&1 &
`
fi
sleep
10s
#ack "$ack_phrase" $project_path/logs/$log_name ${max_wait_log_generate_time} ${max_wait_ack_time}
done
...
...
qa_shell_script/config_server/get_project_config.js
View file @
c607a173
This diff is collapsed.
Click to expand it.
qa_shell_script/config_server/get_project_host.sh
0 → 100644
View file @
c607a173
7001|m.xyqb.com|xyqb-ui
7050|bt.xyqb.com|bt-ui
7003|api.xyqb.com|xyqb
7004|r.xyqb.com|di-ting-ui
7005|rapi.xyqb.com|di-ting
7006|payapi.xyqb.com|gu-bei
7007|pay.xyqb.com|pay-center-ui
7008|off.xyqb.com|offline-ui
7010|offapi.xyqb.com|xyqb-offline
7011|financial.xyqb.com|financial-system-ui
7012|fsapi.xyqb.com|financial-system
7013|auth.xyqb.com|han-gu-guan
7037|qapi.xyqb.com|cash-loan-flow
7019|mallapi.xyqb.com|xyqb-mall
7021|scapi.xyqb.com|spider-center
7029|gyxdapi.xyqb.com|gyxd
7025|btapi.xyqb.com|baitiao
\ No newline at end of file
qa_shell_script/exception_sub_shell.sh
View file @
c607a173
...
...
@@ -54,11 +54,11 @@ tranceConfig java "red.packet.id=10000115" "red.packet.id=56" "192.168.4.13" "xy
tranceConfig java
"7002"
"7050"
"192.168.4.13"
"baitiao.properties"
tranceConfig java
"lkb.model.url=http:
\/\/
192.168.4.202
\/
Model
\/
openapi"
"lkb.model.url=http:
\/\/
192.168.4.13:8090
\/
Model
\/
openapi"
"192.168.4.13"
"baitiao.properties"
tranceConfig java
"xyqb.model.url=http:
\/\/
192.168.4.202
\/
Model
\/
openapi"
"xyqb.model.url=http:
\/\/
192.168.4.13:8090
\/
Model
\/
openapi"
"192.168.4.13"
"baitiao.properties"
tranceConfig java
"wx89894cd83d117b26"
"wx
df0392b9a648b646
"
"192.168.4.13"
"xyqb-user2.properties"
tranceConfig java
"11fb7f6a8b8edf2776a72c2f5624229c"
"
0849d140bbb50de8fceae2c4694e2e3f
"
"192.168.4.13"
"xyqb-user2.properties"
tranceConfig ui
"wx89894cd83d117b26"
"wx
df0392b9a648b646
"
"192.168.4.13"
"xyqb-user-ui.js"
tranceConfig ui
"11fb7f6a8b8edf2776a72c2f5624229c"
"
0849d140bbb50de8fceae2c4694e2e3f
"
"192.168.4.13"
"xyqb-user-ui.js"
tranceConfig ui
"wechattest.xyqb.com"
"wechattest
2
.xyqb.com"
"192.168.4.13"
"xyqb-user-ui.js"
tranceConfig java
"wx89894cd83d117b26"
"wx
5b2e77c58fdcf1a5
"
"192.168.4.13"
"xyqb-user2.properties"
tranceConfig java
"11fb7f6a8b8edf2776a72c2f5624229c"
"
feb3c0705c1200f3759052310bde3369
"
"192.168.4.13"
"xyqb-user2.properties"
tranceConfig ui
"wx89894cd83d117b26"
"wx
5b2e77c58fdcf1a5
"
"192.168.4.13"
"xyqb-user-ui.js"
tranceConfig ui
"11fb7f6a8b8edf2776a72c2f5624229c"
"
feb3c0705c1200f3759052310bde3369
"
"192.168.4.13"
"xyqb-user-ui.js"
tranceConfig ui
"wechattest.xyqb.com"
"wechattest
1
.xyqb.com"
"192.168.4.13"
"xyqb-user-ui.js"
#4.14
#tranceConfig java 'cardniu.client.url=http://kn.feidee.net/loanmanage/loan/partner/k_n_user_quota_client.do' 'cardniu.client.url=http://192.168.4.248/mockjs/31/loanmanage/loan/partner/k_n_user_quota_client.do' "192.168.4.14" "xyqb.properties"
...
...
@@ -119,6 +119,7 @@ tranceConfig java "xyqb.is.debug=0" "xyqb.is.debug=1" "192.168.4.23" "baitiao.pr
#tranceConfig java "sms.is.debug=1" "sms.is.debug=0" "192.168.4.24" "di-ting.properties"
#tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.24" "xyqb.properties"
tranceConfig node
"112233445512345.ittun.com"
"activity-op-24.ss.xyqb.loan"
"192.168.4.24"
"activity-op.js"
tranceConfig java
"192.168.4.24:7058"
"wechattest2.xyqb.com"
"192.168.4.24"
"xyqb.properties"
#4.151
tranceConfig java
"xyqb.is.debug=0"
"xyqb.is.debug=1"
"192.168.4.151"
"xyqb.properties"
...
...
qa_shell_script/migrate_ENV/20170703.sh
0 → 100644
View file @
c607a173
#/bin/bash
pwd_path
=
"/home/qa-deploy-utils/qa_shell_script"
config_server
=
"
$pwd_path
/config_server"
project_path
=
`
cat
$config_server
/project_path.sh
`
config_path
=
`
cat
$config_server
/config_path.sh
`
function
changeGitFile
()
{
projects
=(
`
node
$config_server
/get_project_config.js
-type
$1
-attr
name
`
)
for
project
in
${
projects
[@]
}
do
echo
"----
$project
--done"
sed
-i
"s/shengcong.gan:12345678/dekun.dai:quantgroup.com/g"
/home/quant_group/
$project
/.git/config
done
}
changeGitFile java
changeGitFile ui
changeGitFile node
changeGitFile python
qa_shell_script/migrate_ENV/remote.sh
0 → 100644
View file @
c607a173
#!/bin/bash
IP_host_first
=
"192.168.4."
pwd_path
=
"/home/qa-deploy-utils/qa_shell_script"
config_server
=
"
$pwd_path
/config_server"
project_path
=
`
cat
$config_server
/get_env_ip.sh
`
for
ip_last_num
in
$project_path
do
echo
"------------------IP-
${
IP_host_first
}${
ip_last_num
}
------------------"
expect
-c
"
set timeout 10
spawn ssh root@
${
IP_host_first
}${
ip_last_num
}
expect *ssword* { send !QAZ2wsx
\r
}
expect
\"
]#
\"
send
\"
sh /home/qa-deploy-utils/qa_shell_script/migrate_ENV/
$1
\r\"
set timeout -1
expect
\"
]#
\"
send
\"
exit
\r\"
expect eof;"
echo
"======================END================================="
done
qa_shell_script/mock_yeepay.sh
0 → 100755
View file @
c607a173
function
mock
()
{
mkdir
-p
/home/quant_group/gu-bei/config
if
[[
-a
/home/quant_group/gu-bei/config/application.properties
]]
;
then
sed
-i
"/yeepay.v2.xyqb.merchant/d"
/home/quant_group/gu-bei/config/application.properties
sed
-i
"/yeepay.v2.xyqb.privateKey/d"
/home/quant_group/gu-bei/config/application.properties
sed
-i
"/yeepay.v2.xyqb.yeepay.publicKey/d"
/home/quant_group/gu-bei/config/application.properties
sed
-i
"/yeepay.v2.apihost/d"
/home/quant_group/gu-bei/config/application.properties
fi
echo
"yeepay.v2.xyqb.merchant=10000449633"
>>
/home/quant_group/gu-bei/config/application.properties
echo
"yeepay.v2.xyqb.privateKey=MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBANSBQSc0Hlr+mS7uoIjYS71X2DJ6ZrCcbB1uICqty9QY6W16nZ8tLN/d9k2Z+e2rGG8s7PskpU2T+WuJeDSXs/vpPllG8/tSRVaWcr9EzPaSti3ltSUH0QOLSypZEjTT/slscExj4PMOmQXUXP3gewjNWz1cYRI7dGnKPm+ZFah/AgMBAAECgYB8AcFngz6DkzcI8C+2K6JnJ6/+JPdv8JgWxID45tqfNrphLMB2dwJM0VY+CrCSRNnJZsoT9FqSXtuaKWqAJlbchhPZjupA9RkWFzlGpCQ63/CC71RYYY03eCnc7AIpn52whkjfWG/yf57jKzEwUT+U034uvXdaA+lVvJ0xqpj3gQJBAOmLODjecn450TJbNQaop+7Q5Hz2TUIxbYakzPpcLGv1QYgHa657r7PJ23ZltDBGldMaNTZfqJrtDcq0rTA4lBECQQDo8CcdUhMZ3JbR2UZN0CG8ljMbNWgNWBa37ebE3ZG5yYldc7zY9US/+/7lhxNDqG0saTvM9pJwEc3ccVMvksOPAkEAqq7V+zIQKVJmItBn06MFgNNoei+kTUFEk8f0CvG8gXYwW5NYzp+UzOg1HbW82B9uNmeMBl4pInknwEMF5B0lkQJAdRxQPgCGk+kAdo6LNxHd9Ed7eEF4h8Ty3xQfgnh3DHYTtsU6e8WMBA24kENB3zEtejeKFjkdVHTPD/Z1wSRDZwJAAvNuq0YuRDsESOAerkBZKonA5CD0M4vHTRqihHrjBohv6yxBU8P7gALrX7qmoaZ3aLmN8wHdOAGTR6LZjQdkoQ=="
>>
/home/quant_group/gu-bei/config/application.properties
echo
"yeepay.v2.xyqb.yeepay.publicKey=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUgUEnNB5a/pku7qCI2Eu9V9gyemawnGwdbiAqrcvUGOltep2fLSzf3fZNmfntqxhvLOz7JKVNk/lriXg0l7P76T5ZRvP7UkVWlnK/RMz2krYt5bUlB9EDi0sqWRI00/7JbHBMY+DzDpkF1Fz94HsIzVs9XGESO3Rpyj5vmRWofwIDAQAB"
>>
/home/quant_group/gu-bei/config/application.properties
echo
"yeepay.v2.apihost=http://192.168.4.241:10086/tzt-api/api/"
>>
/home/quant_group/gu-bei/config/application.properties
/home/qa-deploy-utils/qa_shell_script/5_restart_by_name.sh gu-bei
}
function
unmock
()
{
if
[[
-a
/home/quant_group/gu-bei/config/application.properties
]]
;
then
sed
-i
"/yeepay.v2.xyqb.merchant/d"
/home/quant_group/gu-bei/config/application.properties
sed
-i
"/yeepay.v2.xyqb.privateKey/d"
/home/quant_group/gu-bei/config/application.properties
sed
-i
"/yeepay.v2.xyqb.yeepay.publicKey/d"
/home/quant_group/gu-bei/config/application.properties
sed
-i
"/yeepay.v2.apihost/d"
/home/quant_group/gu-bei/config/application.properties
fi
/home/qa-deploy-utils/qa_shell_script/5_restart_by_name.sh gu-bei
}
if
[[
$1
=
"yes"
]]
;
then
mock
else
unmock
fi
qa_shell_script/ngrok/make_frp_ini.sh
0 → 100755
View file @
c607a173
#!/bin/bash
pwd_path
=
"/home/qa-deploy-utils/qa_shell_script"
config_shell_path
=
"
$pwd_path
"
config_server
=
"
$pwd_path
/config_server"
filename
=
/home/quant_group/frp_0.12.0_linux_amd64/frpc_custom.ini
IP_host_first
=
"192.168.4."
ips
=
`
cat
$config_server
/get_env_ip.sh
`
function
addFileHead
()
{
rm
-rf
$1
echo
"[common]"
>>
$1
echo
"server_addr = 127.0.0.1"
>>
$1
echo
"server_port = 7000"
>>
$1
echo
"privilege_token = 12345678"
>>
$1
echo
" "
>>
$1
}
addFileHead
$filename
function
addFile
()
{
echo
"
$1
$2
$3
$4
"
echo
"[web-
$2
-
$1
]"
>>
$4
echo
"type = http"
>>
$4
echo
"local_ip = 192.168.4.
$1
"
>>
$4
echo
"local_port =
$3
"
>>
$4
echo
"subdomain =
$2
-
$1
"
>>
$4
}
# projectAndPort=`node $config_server/get_project_config.js -type multi -attr port`
for
ip_last
in
${
ips
[@]
}
do
projectAndPort
=
`
node
$config_server
/get_project_config.js
-type
multi
-attr
port
`
for
projectAndPort
in
${
projectAndPort
[@]
}
do
var
=
${
projectAndPort
//|/
}
addFile
$ip_last
$var
$filename
done
done
qa_shell_script/ngrok/make_ngrok_yml.sh
View file @
c607a173
...
...
@@ -57,7 +57,7 @@ function addFile()
# port=`node $config_server/get_project_config.js -name $project -attr port`
# addFile $project $port $filename
#done
projects_of_out_proxy
=(
activity-ui gu-bei activity-op op-api spider-center di-ting merchant-backend cash-loan-flow xyqb xyqb-quartz xyqb-query qgbc-ui bt-ui xyqb-user2 xyqb-ui xyqb-user-ui xyqb-mall
)
projects_of_out_proxy
=(
AppBackend mall-ui ka-spider-center-ui
activity-ui gu-bei activity-op op-api spider-center di-ting merchant-backend cash-loan-flow xyqb xyqb-quartz xyqb-query qgbc-ui bt-ui xyqb-user2 xyqb-ui xyqb-user-ui xyqb-mall
)
for
ip_last
in
${
ips
[@]
}
...
...
qa_shell_script/ngrok/ngrok_confg.yml
deleted
100755 → 0
View file @
6b1473de
server_addr
:
ss.xyqb.loan:4443
trust_host_root_certs
:
false
tunnels
:
xyqb-iplast
:
proto
:
http
:
"
7003"
baitiao-iplast
:
proto
:
http
:
"
7025"
xyqb-mall-iplast
:
proto
:
http
:
"
7019"
xyqb-offline-iplast
:
proto
:
http
:
"
7010"
xyqb-user2-iplast
:
proto
:
http
:
"
7042"
di-ting-iplast
:
proto
:
http
:
"
7005"
han-gu-guan-iplast
:
proto
:
http
:
"
7013"
jian-men-guan-iplast
:
proto
:
http
:
"
7015"
black-hole-iplast
:
proto
:
http
:
"
7028"
gu-bei-iplast
:
proto
:
http
:
"
7006"
xyqb-quartz-iplast
:
proto
:
http
:
"
7023"
spider-center-iplast
:
proto
:
http
:
"
7021"
cash-loan-flow-iplast
:
proto
:
http
:
"
7037"
financial-system-iplast
:
proto
:
http
:
"
7012"
fund-manage-iplast
:
proto
:
http
:
"
7034"
gyxd-iplast
:
proto
:
http
:
"
7029"
merchant-backend-iplast
:
proto
:
http
:
"
7038"
redpacket-iplast
:
proto
:
http
:
"
7031"
finance-api-iplast
:
proto
:
http
:
"
7044"
check-accounts-iplast
:
proto
:
http
:
"
7045"
du-jiang-yan-iplast
:
proto
:
http
:
"
7014"
op-ui-iplast
:
proto
:
http
:
"
7032"
activity-ui-iplast
:
proto
:
http
:
"
7040"
financial-system-ui-iplast
:
proto
:
http
:
"
7011"
gyxd-ui-iplast
:
proto
:
http
:
"
7030"
offline-ui-iplast
:
proto
:
http
:
"
7008"
funding-corp-op-ui-iplast
:
proto
:
http
:
"
7035"
paycenter-ui-iplast
:
proto
:
http
:
"
7007"
xyqb-user-ui-iplast
:
proto
:
http
:
"
7043"
merchant-op-ui-iplast
:
proto
:
http
:
"
7039"
di-ting-ui-iplast
:
proto
:
http
:
"
7004"
spider-center-ui-iplast
:
proto
:
http
:
"
7020"
qgbc-ui-iplast
:
proto
:
http
:
"
7002"
xyqb-ui-iplast
:
proto
:
http
:
"
7001"
activity-op-ui-iplast
:
proto
:
http
:
"
7046"
order-op-ui-iplast
:
proto
:
http
:
"
7048"
bt-ui-iplast
:
proto
:
http
:
"
7050"
AppBackend-iplast
:
proto
:
http
:
"
7018"
activity-op-iplast
:
proto
:
http
:
"
7041"
op-api-iplast
:
proto
:
http
:
"
7047"
fe-api-iplast
:
proto
:
http
:
"
7049"
qin-qiong-iplast
:
proto
:
http
:
"
7022"
xyqb-query-iplast
:
proto
:
http
:
"
7033"
qa_shell_script/rabbitmq/initial_mq.sh
View file @
c607a173
...
...
@@ -2,6 +2,7 @@
function
add_vhost
()
{
/usr/lib/rabbitmq/bin/rabbitmqctl delete_vhost
$1
/usr/lib/rabbitmq/bin/rabbitmqctl add_vhost
$1
/usr/lib/rabbitmq/bin/rabbitmqctl set_permissions
-p
$1
qa
".*"
".*"
".*"
}
...
...
@@ -90,11 +91,12 @@ add_queues mall refund
add_queues mall refundFeed
add_queues offline Test
add_queues orderstatus_vhost orderstatus_queue
add_queues sms confirm
add_queues sms confirmable
add_queues sms send
add_queues sms voiceconfirm
add_queues sms voiceconfirmable
add_queues sms appMsg
add_queues sms smsMsg
add_queues sms confirmMsg
add_queues sms thirdMsg
add_queues sms weChatMsg
add_queues sms smsOpMarket
add_queues spider_center SpiderSuccess
add_queues spider_center Test
add_queues xyqb_push TestEvents
...
...
qa_shell_script/sub_shell.sh
View file @
c607a173
...
...
@@ -22,8 +22,6 @@ do
mkdir
$dir
/public
rm
-rf
$dir
/public/java
mkdir
$dir
/public/java
rm
-rf
$dir
/special
mkdir
$dir
/special
rm
-rf
$dir
/public/node
mkdir
$dir
/public/node
...
...
@@ -50,9 +48,6 @@ do
sed
-i
"s/ip_last/
$ip_last_num
/g"
$dir
/public/java/
*
sed
-i
"s/ip_last/
$ip_last_num
/g"
$dir
/java/
*
cp
-rf
/home/config_files/special/
*
$dir
/special/
sed
-i
"s/iplast/
${
ip_last_num
}
/g"
$dir
/special/ngrok_confg.yml
#python项目发布
rm
-rf
$dir
/python
...
...
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