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
fcb360b1
Commit
fcb360b1
authored
Mar 08, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitabc.xyqb.com/QA/qa-deploy-utils
parents
bb8bb658
08e66e80
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
52 additions
and
33 deletions
+52
-33
1_mount_config_files.sh
qa_shell_script/1_mount_config_files.sh
+5
-1
4_build_by_name.sh
qa_shell_script/4_build_by_name.sh
+8
-7
4_build_by_type.sh
qa_shell_script/4_build_by_type.sh
+7
-6
get_env_ip.sh
qa_shell_script/config_server/get_env_ip.sh
+1
-5
get_project_config.js
qa_shell_script/config_server/get_project_config.js
+7
-6
exception_sub_shell.sh
qa_shell_script/exception_sub_shell.sh
+12
-5
initial_mq.sh
qa_shell_script/rabbitmq/initial_mq.sh
+2
-0
remote_excute_rabbitmq.sh
qa_shell_script/remote_excute_rabbitmq.sh
+9
-2
sub_shell.sh
qa_shell_script/sub_shell.sh
+1
-1
No files found.
qa_shell_script/1_mount_config_files.sh
View file @
fcb360b1
...
...
@@ -3,9 +3,13 @@ target_ip=$1
IP_host_first
=
"192.168.4."
config_files
=
/home/config_files
script_path
=
/home/qa-deploy-utils/qa_shell_script
pwd_path
=
"/home/qa-deploy-utils/qa_shell_script"
config_server
=
"
$pwd_path
/config_server"
project_path
=
`
cat
$config_server
/get_env_ip.sh
`
if
[[
$target_ip
==
"ALL"
]]
;
then
for
ip_last_num
in
12 13 14 15 16 17 24 151 152
for
ip_last_num
in
$project_path
do
expect
-c
"
set timeout 10
...
...
qa_shell_script/4_build_by_name.sh
View file @
fcb360b1
...
...
@@ -74,17 +74,18 @@ function buildUiProject()
if
[
-n
"
$imagemin_dist
"
]
;
then
echo
"npm install gruntjs/grunt-contrib-imagemin"
${
node4_path
}
/npm
--registry
http://192.168.3.7:4873
install
gruntjs/grunt-contrib-imagemin
#${node4_path}/
npm
install
gruntjs/grunt-contrib-imagemin
#${node4_path}/npm --registry http://192.168.3.7:4873 install async
else
echo
"dont install imagemin"
fi
# --registry http://192.168.3.7:4873
if
[
"
$node_version
"
=
"node4"
]
;
then
echo
"----node-V4---
${
node4_path
}
/npm
--registry http://192.168.3.7:4873
install"
${
node4_path
}
/npm
--registry
http://192.168.3.7:4873
install
echo
"----node-V4---
${
node4_path
}
/npm install"
${
node4_path
}
/npm
install
else
npm
--registry
http://1
92.168.3.7
:4873
install
npm
--registry
http://1
72.16.3.15
:4873
install
fi
bower_json
=
`
find ./
-maxdepth
1
-name
"bower.json"
`
...
...
@@ -115,7 +116,7 @@ function buildNodeProject()
rm
-rf
./
$config_file
echo
" ------------ln -s
$config_path
/node/
$project
.* ./
$config_file
"
ln
-s
$config_path
/node/
$project
.
*
./
$config_file
npm
--registry
http://1
92.168.3.7
:4873
install
npm
--registry
http://1
72.16.3.15
:4873
install
}
function
buildPythonProject
()
...
...
qa_shell_script/4_build_by_type.sh
View file @
fcb360b1
...
...
@@ -63,17 +63,18 @@ function buildUiProject()
if
[
-n
"
$imagemin_dist
"
]
;
then
echo
"npm install gruntjs/grunt-contrib-imagemin"
${
node4_path
}
/npm
--registry
http://192.168.3.7:4873
install
gruntjs/grunt-contrib-imagemin
#${node4_path}/
npm
install
gruntjs/grunt-contrib-imagemin
#
else
echo
"dont install imagemin"
fi
if
[
"
$node_version
"
=
"node4"
]
;
then
echo
"----node-V4---
${
node4_path
}
/npm
--registry http://192.168.3.7:4873
install"
${
node4_path
}
/npm
--registry
http://192.168.3.7:4873
install
echo
"----node-V4---
${
node4_path
}
/npm install"
${
node4_path
}
/npm
install
else
npm
--registry
http://1
92.168.3.7
:4873
install
npm
--registry
http://1
72.16.3.15
:4873
install
fi
bower_json
=
`
find ./
-maxdepth
1
-name
"bower.json"
`
...
...
@@ -109,7 +110,7 @@ function buildNodeProject()
rm
-rf
./
$config_file
echo
" ------------ln -s
$config_path
/node/
$project
.* ./
$config_file
"
ln
-s
$config_path
/node/
$project
.
*
./
$config_file
npm
--registry
http://1
92.168.3.7
:4873
install
npm
--registry
http://1
72.16.3.15
:4873
install
}
function
buildPythonProject
()
...
...
qa_shell_script/config_server/get_env_ip.sh
View file @
fcb360b1
IP_host
=
3 12 13 14 15 16 17 24 151 152
for
i
in
${
IP_HOST
[@]
}
do
echo
$i
done
\ No newline at end of file
12 13 14 15 16 17 22 24 50 151 152
qa_shell_script/config_server/get_project_config.js
View file @
fcb360b1
...
...
@@ -82,7 +82,7 @@ new pClass().init(true, "ui", "7035", "funding-corp-op-ui", "QG", null, "src/js/
new
pClass
().
init
(
true
,
"
ui
"
,
"
7007
"
,
"
paycenter-ui
"
,
"
QG
"
,
null
,
"
src/app/config/env.config.js
"
,
"
npm run build
"
,
"
node7
"
,
1
,
"
支付中心-ui
"
,
""
);
new
pClass
().
init
(
true
,
"
ui
"
,
"
7043
"
,
"
xyqb-user-ui
"
,
"
head_group
"
,
null
,
"
src/app/config.js
"
,
"
npm run qa
"
,
"
node7
"
,
1
,
"
用户注册登录-V2-ui
"
,
""
);
new
pClass
().
init
(
true
,
"
ui
"
,
"
7039
"
,
"
merchant-op-ui
"
,
"
QG
"
,
null
,
"
src/js/env.config.js
"
,
"
npm run build
"
,
"
node7
"
,
1
,
"
商户系统-ui
"
,
""
);
new
pClass
().
init
(
true
,
"
ui
"
,
"
7004
"
,
"
di-ting-ui
"
,
"
QG
"
,
null
,
"
client/app/config.js
"
,
"
grunt build
"
,
"
node
4
"
,
1
,
"
信审-ui
"
,
""
);
new
pClass
().
init
(
true
,
"
ui
"
,
"
7004
"
,
"
di-ting-ui
"
,
"
QG
"
,
null
,
"
client/app/config.js
"
,
"
grunt build
"
,
"
node
7
"
,
1
,
"
信审-ui
"
,
""
);
new
pClass
().
init
(
true
,
"
ui
"
,
"
7020
"
,
"
spider-center-ui
"
,
"
QG
"
,
null
,
"
src/app/config/env.config.js
"
,
"
npm run qa
"
,
"
node7
"
,
1
,
"
授信中心-ui
"
,
""
);
new
pClass
().
init
(
true
,
"
ui
"
,
"
7002
"
,
"
qgbc-ui
"
,
"
QG
"
,
null
,
"
src/app/config/env.config.js
"
,
"
npm run build_production
"
,
"
node7
"
,
1
,
"
现金贷和白条-白条-ui
"
,
""
);
new
pClass
().
init
(
true
,
"
ui
"
,
"
7001
"
,
"
xyqb-ui
"
,
"
QG
"
,
null
,
"
client/app/config.js
"
,
"
grunt build
"
,
"
node4
"
,
1
,
"
现金贷和白条-现金贷-ui
"
,
""
);
...
...
@@ -90,12 +90,13 @@ new pClass().init(true, "ui", "7046", "activity-op-ui", "QG", null, "src/js/env.
new
pClass
().
init
(
true
,
"
ui
"
,
"
7048
"
,
"
order-op-ui
"
,
"
OP
"
,
null
,
"
src/js/env.config.js
"
,
"
gulp build
"
,
"
node7
"
,
1
,
"
订单系统-ui
"
,
""
);
// node
new
pClass
().
init
(
true
,
"
node
"
,
"
7018
"
,
"
AppBackend
"
,
"
QG
"
,
null
,
"
config/environment/test.js
"
,
"
forever start -a -s --uid AppBackend bin/www
"
,
null
,
1
,
"
APP后台服务-server
"
,
""
,
"
forever stop AppBackend
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7041
"
,
"
activity-op
"
,
"
QG
"
,
null
,
"
src/config.js
"
,
"
forever start -a -s --uid activity-op src/app.js
"
,
null
,
1
,
"
优惠券中心-server
"
,
"
forever stop activity-op
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7047
"
,
"
op-api
"
,
"
OP
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
系统Api Gateway-server
"
,
"
sh stop.sh
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7041
"
,
"
activity-op
"
,
"
QG
"
,
null
,
"
src/config.js
"
,
"
forever start -a -s --uid activity-op src/app.js
"
,
null
,
1
,
"
优惠券中心-server
"
,
""
,
"
forever stop activity-op
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7047
"
,
"
op-api
"
,
"
OP
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
系统Api Gateway-server
"
,
""
,
"
sh stop.sh
"
);
new
pClass
().
init
(
true
,
"
node
"
,
"
7049
"
,
"
fe-api
"
,
"
QG
"
,
null
,
"
src/config.js
"
,
"
sh start.sh
"
,
null
,
1
,
"
科传项目-消息推送
"
,
""
,
"
pm2 stop fe-api
"
);
//python
new
pClass
().
init
(
true
,
"
python
"
,
"
7022
"
,
"
qin-qiong
"
,
"
QG
"
,
null
,
"
config/beta/config.properties
"
,
null
,
null
,
1
,
"
加密解密-server
"
,
""
);
new
pClass
().
init
(
true
,
"
python
"
,
"
7033
"
,
"
xyqb-query
"
,
"
QG
"
,
null
,
"
server/config/beta/config.ini
"
,
null
,
null
,
1
,
"
query-server
"
,
""
);
new
pClass
().
init
(
false
,
"
python
"
,
"
7027
"
,
"
msg-center
"
,
"
QG
"
,
null
,
"
server/config/beta/config.ini
"
,
null
,
null
,
1
,
"
短信中心-以前的sms-center
"
,
""
);
new
pClass
().
init
(
true
,
"
python
"
,
"
7022
"
,
"
qin-qiong
"
,
"
QG
"
,
null
,
"
config/beta/config.properties
"
,
null
,
null
,
1
,
"
加密解密-server
"
,
""
,
""
);
new
pClass
().
init
(
true
,
"
python
"
,
"
7033
"
,
"
xyqb-query
"
,
"
QG
"
,
null
,
"
server/config/beta/config.ini
"
,
null
,
null
,
1
,
"
query-server
"
,
""
,
""
);
new
pClass
().
init
(
false
,
"
python
"
,
"
7027
"
,
"
msg-center
"
,
"
QG
"
,
null
,
"
server/config/beta/config.ini
"
,
null
,
null
,
1
,
"
短信中心-以前的sms-center
"
,
""
,
""
);
var
temp
=
""
;
...
...
qa_shell_script/exception_sub_shell.sh
View file @
fcb360b1
...
...
@@ -37,7 +37,7 @@ function tranceConfig()
}
#tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.1
3
" "xyqb-mall.properties"
#tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.1
2
" "xyqb-mall.properties"
tranceConfig java
"pay.debug=0"
"pay.debug=1"
"192.168.4.151"
"xyqb-mall.properties"
#tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.152" "xyqb-mall.properties"
#tranceConfig java "192.168.4.3" "192.168.4.17" "192.168.4.17" "*"
...
...
@@ -46,15 +46,22 @@ tranceConfig java "pay.debug=0" "pay.debug=1" "192.168.4.151" "xyqb-mall.propert
#tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.24" "xyqb.properties"
#tranceConfig node "192.168.4.3" "192.168.4.107" "192.168.4.12" "AppBackend.js"
tranceConfig java
"xyqb.is.debug=1"
"xyqb.is.debug=0"
"192.168.4.151"
"xyqb.properties"
tranceConfig java
"xyqb.is.debug=1"
"xyqb.is.debug=0"
"192.168.4.12"
"xyqb.properties"
#tranceConfig ui "7047" "12047" "192.168.4.12" "merchant-op-ui.js"
tranceConfig node
"d45o0qd"
"5exp2xo"
"192.168.4.152"
"op-api.js"
tranceConfig java
"192.168.4.15:7007"
"139.198.2.95:1507"
"192.168.4.15"
"gu-bei.properties"
#tranceConfig java "hubei.api.url=http:\/\/192.168.100.185:8585" "hubei.api.url=http:\/\/192.168.4.251:8585" "192.168.4.16" "di-ting.properties"
#tranceConfig java "wxcdf6077af8127559" "wx0a7c0bce0c3ac523" "192.168.4.15" "xyqb-user2.properties"
#tranceConfig java "16eaec16084d0d9c52d4114f359cc72c" "85d9d59d29d8ed24c361f73d4f35ff91" "192.168.4.15" "xyqb-user2.properties"
#tranceConfig java "192.168.4.15:7007" "139.198.2.95:1507" "192.168.4.15" "gu-bei.properties"
tranceConfig java
"hubei.api.url=http:
\/\/
192.168.100.185:8585"
"hubei.api.url=http:
\/\/
192.168.4.251:8585"
"192.168.4.16"
"di-ting.properties"
#这个配置是微信支付的时候,需要修改成线上的沙箱环境
#tranceConfig java "wxcdf6077af8127559" "wx0a7c0bce0c3ac523" "192.168.4.15" "xyqb-user2.properties"
#tranceConfig java "16eaec16084d0d9c52d4114f359cc72c" "10131fe347f88e0affabe45b7ee4ca6c" "192.168.4.15" "xyqb-user2.properties"
#tranceConfig java "e1dd0780c93aae56c2d786184421cfc8" "10131fe347f88e0affabe45b7ee4ca6c" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "paycenter.host.url=http:\/\/192.168.4.15:7007" "paycenter.host.url=http:\/\/wechattest1.xyqb.com" "192.168.4.15" "gu-bei.properties"
#tranceConfig java "139.198.2.95:1507" "wechattest1.xyqb.com" "192.168.4.15" "gu-bei.properties"
#微信环境配置结束
#tranceConfig java "192.168.4.14:7007" "139.198.2.95:1407" "192.168.4.14" "gu-bei.properties"
...
...
qa_shell_script/rabbitmq/initial_mq.sh
View file @
fcb360b1
...
...
@@ -32,6 +32,7 @@ add_vhost sms
add_vhost spider_center
add_vhost xyqb_push
add_vhost bt_loan
add_vhost baitiao_qrcode
#add exchange
add_exchange / hello-exchange direct
...
...
@@ -48,6 +49,7 @@ add_exchange sms sms-control direct
add_exchange xyqb_push events direct
add_exchange bt_loan bt_loan_exchange direct
add_exchange baitiao_debt baitiaodebt_orderinfo direct
add_exchange baitiao_qrcode qrcode fanout
#add queues
add_queues /black_hole contractQueue
...
...
qa_shell_script/remote_excute_rabbitmq.sh
View file @
fcb360b1
#!/bin/bash
IP_host_first
=
"192.168.4."
for
ip_last_num
in
3 12 13 14 15 16 17 24 151 152
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
expect
-c
"
set timeout 10
...
...
qa_shell_script/sub_shell.sh
View file @
fcb360b1
...
...
@@ -4,7 +4,7 @@ public_ip="139.198.2.95"
mkdir
/home/sub_config_file_dont_rm
for
ip_last_num
in
12 13 14 15 16 17 2
4
151 152
for
ip_last_num
in
12 13 14 15 16 17 2
2 24 50
151 152
do
cd
/home/sub_config_file_dont_rm
mkdir
${
IP_host_first
}${
ip_last_num
}
...
...
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