-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
近期github变更了workflow上的node版本,导致原打包流水线失败。为了满足大家打临时包的需求,开发者手册中临时增加本地基于docker的打包策略。同时新增了打包脚本 ./build_rpm.sh 该脚本基于DEVContain开发,开发者使用的时候,需要进入到开发容器后,在根目录执行sh build_rpm.sh,打包完后默认的包路径在 /root/rpmbuild/RPMS/x86_64
- Loading branch information
Showing
2 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# 开始打包 | ||
export RELEASE=`date +%Y%m%d%H%M` | ||
sed -i 's/pip install -r requirements3.txt/curl https:\/\/bootstrap.pypa.io\/get-pip.py -o get-pip.py\n\ | ||
python3 get-pip.py\n\ | ||
pip3 install -r requirements3.txt/' ./rpm/oceanbase-diagnostic-tool.spec | ||
cat ./rpm/oceanbase-diagnostic-tool.spec | ||
rpmbuild -bb ./rpm/oceanbase-diagnostic-tool.spec | ||
# 展示对应的包路径 | ||
find / -name oceanbase-diagnostic-tool-*.rpm |