打包contrail-setup

OS:CentOS6.6

前提:controller位置为github.io中所要求的VNC编译的位置


方法:

1 修改spec

参考我的git

2 下载contrail-provisioning并放到tools目录下,改名为provisioning

3

拷贝zope*.tar.gz等到/home/z/cpl/ctrl/third_party

/home/z/cpl/ctrl/third_party /home/z/cpl/ctrl/tools
+ install -p -m 644 zope.interface-3.7.0.tar.gz /root/rpmbuild/BUILDROOT/contrail-setup-1-1506120635.el6.x86_64/opt/contrail/python_packages/
+ install -p -m 644 paramiko-1.11.0.tar.gz /root/rpmbuild/BUILDROOT/contrail-setup-1-1506120635.el6.x86_64/opt/contrail/python_packages/
+ install -p -m 644 pycrypto-2.6.tar.gz /root/rpmbuild/BUILDROOT/contrail-setup-1-1506120635.el6.x86_64/opt/contrail/python_packages/
+ install -p -m 644 Fabric-1.7.0.tar.gz /root/rpmbuild/BUILDROOT/contrail-setup-1-1506120635.el6.x86_64/opt/contrail/python_packages/

4

vi ../../../packaging/build/create_pkg_list_file.py

改成本地获取此文件

[root@ck build]# diff /home/z/cpl/ctrl/tools/packaging/build/create_pkg_list_file.py create_pkg_list_file.py
42,45c42,44
<     #cmd = 'repo info contrail-packaging | grep "Mount path" | cut -f3 -d " "'
<     #repo_top_cmd = os.popen(cmd)
<     #repo_top = repo_top_cmd.read().strip('\n')
<     repo_top = "/home/z/cpl/ctrl/tools/packaging"
---
>     cmd = 'repo info contrail-packaging | grep "Mount path" | cut -f3 -d " "'
>     repo_top_cmd = os.popen(cmd)
>     repo_top = repo_top_cmd.read().strip('\n')

5

在packaging/..../rpm/下 make contrail-setup

你可能感兴趣的:(打包contrail-setup)