apt回购管理、建造等。
django-repomgmt的Python项目详细描述
python django repomgmt
这个django应用程序实现了创建apt存储库所需的一切, 建立基础设施和自动包构建。
它期望访问openstack计算云来执行构建和使用 在后台重新编程以管理apt存储库,处理传入, 等
设置应该相当简单。
你需要django,django tastype,django芹菜,sbuild和devscripts 安装。
这些是需要添加到设置中的配置选项。py:
apt_repo_base_url
The base URL by which your repositories will be reachable.
E.g. if set to http://apt.example.com/, it’s assumed that your web server is configured to expose e.g. the “cisco” repository under http://apt.example.com/cisco
后MK构建定制
An argv to be executed in the schroot after mk-sbuild is done.
E.g. to avoid using a proxy for a apt.example.com, you can do something like:
POST_MK_SBUILD_CUSTOMISATION = [‘bash’, ‘-c’, ‘echo ‘Acquire::HTTP::Proxy::apt.example.com “DIRECT”;’ > /etc/apt/apt.conf.d/99noproxy’]
基本URL
The base URL of the repomgmt app. This is used to construct URLs where build nodes can fetch their puppet manifest.
基本tarball网址
A URL where the generated tarballs can be found. The tarballs generally land in /var/lib/schroot/tarballs, so you should configure a web server to serve that directory at this URL.
基本回购目录
The base directory where the repositories should be kept. Each repository will be represented by a subdirectory here.
预计django芹菜已经配置好。这应该很简单,只需在设置的末尾添加类似的内容即可。py:
INSTALLED_APPS += (“djcelery”, ) import djcelery djcelery.setup_loader()
BROKER_URL = ‘amqp://guest:guest@localhost:5672/’