当前位置: 首页>>代码示例>>Python>>正文


Python DockerImages.list_imgs_with_full_name_components方法代码示例

本文整理汇总了Python中dockertest.images.DockerImages.list_imgs_with_full_name_components方法的典型用法代码示例。如果您正苦于以下问题:Python DockerImages.list_imgs_with_full_name_components方法的具体用法?Python DockerImages.list_imgs_with_full_name_components怎么用?Python DockerImages.list_imgs_with_full_name_components使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在dockertest.images.DockerImages的用法示例。


在下文中一共展示了DockerImages.list_imgs_with_full_name_components方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: postprocess

# 需要导入模块: from dockertest.images import DockerImages [as 别名]
# 或者: from dockertest.images.DockerImages import list_imgs_with_full_name_components [as 别名]
 def postprocess(self):
     super(build, self).postprocess()
     # Raise exception if problems found
     OutputGood(self.stuff['cmdresult'])
     self.failif(self.stuff['cmdresult'].exit_status != 0,
                 "Non-zero build exit status: %s"
                 % self.stuff['cmdresult'])
     image_name = self.stuff['image_name']
     image_tag = self.stuff['image_tag']
     di = DockerImages(self)
     imgs = di.list_imgs_with_full_name_components(repo=image_name,
                                                   tag=image_tag)
     self.failif(len(imgs) < 1, "Test image build result was not found")
     self.stuff['image_id'] = imgs[0].long_id  # assume first one is match
     self.failif(self.stuff['image_id'] is None,
                 "Failed to look up image ID from build")
     self.loginfo("Found image: %s", imgs[0].full_name)
开发者ID:xiaoqing-wei,项目名称:autotest-docker,代码行数:19,代码来源:build.py


注:本文中的dockertest.images.DockerImages.list_imgs_with_full_name_components方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。