Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
obdeploy
提交
5d01f64b
O
obdeploy
项目概览
oceanbase
/
obdeploy
1 年多 前同步成功
通知
7
Star
73
Fork
132
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
obdeploy
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
未验证
提交
5d01f64b
编写于
1月 03, 2022
作者:
R
Rongfeng Fu
提交者:
GitHub
1月 03, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix #74 (#76)
* update example * fix #74
上级
c30d2373
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
12 addition
and
11 deletion
+12
-11
core.py
core.py
+6
-6
plugins/oceanbase/3.1.0/upgrade_route.py
plugins/oceanbase/3.1.0/upgrade_route.py
+1
-1
rpm/build.sh
rpm/build.sh
+4
-3
rpm/ob-deploy.spec
rpm/ob-deploy.spec
+1
-1
未找到文件。
core.py
浏览文件 @
5d01f64b
...
...
@@ -1215,9 +1215,9 @@ class ObdHome(object):
self
.
_call_stdio
(
'error'
,
'Deploy "%s" is %s. You could not reload an %s cluster.'
%
(
name
,
deploy_info
.
status
.
value
,
deploy_info
.
status
.
value
))
return
False
# if deploy_info.config_status != DeployConfigStatus.NEED_RELOAD
:
# self._call_stdio('error', 'Deploy config %s' % deploy_info.config_status.value
)
# return Fals
e
if
deploy_info
.
config_status
==
DeployConfigStatus
.
UNCHNAGE
:
self
.
_call_stdio
(
'print'
,
'Deploy config is UNCHNAGE'
)
return
Tru
e
self
.
_call_stdio
(
'verbose'
,
'Get deploy config'
)
deploy_config
=
deploy
.
deploy_config
...
...
@@ -1542,9 +1542,9 @@ class ObdHome(object):
self
.
_call_stdio
(
'error'
,
'Not found %s in Deploy "%s" '
%
(
component
,
name
))
return
False
else
:
if
len
(
deploy_info
.
components
)
==
1
:
component
=
deploy_info
.
components
.
keys
()[
0
]
else
:
for
component
in
deploy_info
.
components
:
break
if
not
component
:
self
.
_call_stdio
(
'error'
,
'Specify the components you want to upgrade.'
)
return
False
...
...
plugins/oceanbase/3.1.0/upgrade_route.py
浏览文件 @
5d01f64b
...
...
@@ -186,7 +186,7 @@ def upgrade_route(plugin_context, current_repository, dest_repository, *args, **
yaml
=
YamlLoader
(
stdio
)
try
:
with
open
(
upgrade_dep_path
)
as
f
:
with
open
(
upgrade_dep_path
,
encoding
=
'utf-8'
)
as
f
:
data
=
yaml
.
load
(
f
)
graph
=
ObVersionGraph
(
data
)
route
=
graph
.
findShortestUpgradePath
(
current_repository
,
dest_repository
)
...
...
rpm/build.sh
浏览文件 @
5d01f64b
...
...
@@ -108,15 +108,16 @@ function build()
CID
=
`
git log |head
-n1
|
awk
-F
' '
'{print $2}'
`
BRANCH
=
`
git branch |
grep
-e
"^
\*
"
|
awk
-F
' '
'{print $2}'
`
DATE
=
`
date
'+%b %d %Y %H:%M:%S'
`
VERSION
=
$VERSION
".
`
date
+%s
`
"
`
BUILD_DIR
=
"
$DIR
/.build"
rm
-fr
$BUILD_DIR
mkdir
-p
$BUILD_DIR
/lib/site-packages
mkdir
-p
$BUILD_DIR
/mirror/remote
wget https://mirrors.aliyun.com/oceanbase/OceanBase.repo
-O
$BUILD_DIR
/mirror/remote/OceanBase.repo
cat
_cmd.py |
sed
"s/<CID>/
$CID
/"
|
sed
"s/<B_BRANCH>/
$BRANCH
/"
|
sed
"s/<B_TIME>/
$DATE
/"
|
sed
"s/<DEBUG>/
$OBD_DUBUG
/"
|
sed
"s/<VERSION>/
$VERSION
/"
>
obd.py
pip
install
-r
$req_fn
.txt
pip
install
-r
plugins-
$req_fn
.txt
--target
=
$BUILD_DIR
/lib/site-packages
pyinstaller
--hidden-import
=
decimal
--hidden-import
=
configparser
-F
obd.py
pip
install
-r
$req_fn
.txt
|
exit
1
pip
install
-r
plugins-
$req_fn
.txt
--target
=
$BUILD_DIR
/lib/site-packages
|
exit
1
pyinstaller
--hidden-import
=
decimal
--hidden-import
=
configparser
-F
obd.py
|
exit
1
rm
-f
obd.py obd.spec
cp
-r
plugins
$BUILD_DIR
/plugins
rm
-fr
/usr/obd /usr/bin/obd
...
...
rpm/ob-deploy.spec
浏览文件 @
5d01f64b
Name: ob-deploy
Version: 1.2.
0
Version: 1.2.
1
Release: %(echo $RELEASE)%{?dist}
# if you want use the parameter of rpm_create on build time,
# uncomment below
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录