Hi infra guys

 

当前,centosfedoragit代码仓管理中,不存放具体的源码二进制压缩包。https://src.fedoraproject.org/rpms/0ad-data/tree/master

这样的好处时,

1、  仓库中只包含文本文件

2、  仓库的大小很小,下载很方便

3、  可以避免码云上大文件的提交和下载问题

 

 

其做法是,提供一个fedpkg工具,封装git

1、  git push时将其中的二进制压缩包转化为一个sources文件,里面存放二进制文件的元数据和校验值  https://src.fedoraproject.org/rpms/0ad-data/blob/master/f/sources

2、  二进制压缩包自动存放在统一的文件服务器上    https://src.fedoraproject.org/repo/pkgs/

3、  git clone时,自动将二进制下载下来替换sources,并校验  

 

有两种方案可以完成这个目标,基础设施是否可以考虑:

1、  自己搭一个文件服务器,和码云代码仓联动

2、  给码云提诉求,提供类似功能的插件。

 

 

 

何晓文 (Hex EulerOS

Email : hexiaowen@huawei.com

 

This e-mail and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!