在干净的3级容器中测试gentoo包的容器方法

ebuildtester的Python项目详细描述


此脚本是测试gentoo ebuild及其 依赖关系。我们的想法是,包是在一个干净的(和 当前)3级码头集装箱。

https://travis-ci.org/nicolasbock/ebuildtester.svg?branch=masterhttps://badge.fury.io/py/ebuildtester.svgDocumentation Status'Waffle.io - Columns and their card count'

要求

您需要DockerFUSE。Docker必须是 配置为使用devicemapper 存储驱动器。这可以通过以下内部实现 /etc/docker/daemon.json

{"storage-driver":"devicemapper"}

用法

我们假设用户在

/usr/local/git/gentoo

我们添加了一个新的ebuild,并希望验证 依赖关系都是正确的。我们可以使用:

ebuildtester --portage-dir /usr/local/git/gentoo \
  --atom ATOM \
  --use USE1 USE2

在这里我们指定了两个use标志,use1和use2。这个 ebuildtester命令现在将创建一个docker容器并启动 安装原子。所有指定的依赖项都将安装为 好。

命令行参数

该命令理解以下命令行参数:

usage: ebuildtester [-h][--version][--atom ATOM [ATOM ...]][--live-ebuild][--manual] --portage-dir PORTAGE_DIR
                         [--overlay-dir OVERLAY_DIR][--update {yes,true,no,false}][--threads N][--use USE [USE ...]][--global-use GLOBAL_USE [GLOBAL_USE ...]][--unmask ATOM][--unstable][--gcc-version VER][--rm][--with-X][--with-vnc][--profile {default/linux/amd64/17.0,default/linux/amd64/17.0/systemd}]

A dockerized approach to test a Gentoo package within a clean stage3.

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --atom ATOM [ATOM ...]
                        The package atom(s) to install
  --live-ebuild         Unmask the live ebuild of the atom
  --manual              Install package manually
  --portage-dir PORTAGE_DIR
                        The local portage directory
  --overlay-dir OVERLAY_DIR
                        Add overlay dir (can be used multiple times)
  --update {yes,true,no,false}
                        Update container before installing atom
  --threads N           Use N (default 8) threads to build packages
  --use USE [USE ...]   The use flags for the atom
  --global-use GLOBAL_USE [GLOBAL_USE ...]
                        Set global USE flag
  --unmask ATOM         Unmask atom (can be used multiple times)
  --unstable            Globally 'unstable' system, i.e. ~amd64
  --gcc-version VER     Use gcc version VER
  --rm                  Remove container after session is done
  --with-X              Globally enable the X USE flag
  --with-vnc            Install VNC server to test graphical applications
  --profile {default/linux/amd64/17.0,default/linux/amd64/17.0/systemd}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
空字符串检查在java中未按预期工作   JavaSpringWebClient:自动计算主体的HMAC签名并将其作为头传递   foreach是否有一个Java等效的foreach循环和一个引用变量?   java如何在Eclipse中导入jar   使用特定第三方或java时lombok触发错误。*方法或构造函数   安卓 java将对象数组转换为int数组   java使一定百分比的JUnit测试通过   java Android:将Seekbar的一个值与另一个值进行比较   java将int数组(图像数据)写入文件的最佳方式是什么   java取代了系统。yml的构造函数内的getProperty   sqlite Java将公钥和私钥转换为字符串,然后再转换回字符串   安卓获取白色像素并将其保存到java opencv中的数组中   java为什么是ServerSocket。setSocketFactory静态?   Java数组似乎在不直接修改的情况下更改值