本文整理汇总了Python中atomic_reactor.inner.DockerBuildWorkflow.prebuild_results[PLUGIN_CHECK_AND_SET_PLATFORMS_KEY]方法的典型用法代码示例。如果您正苦于以下问题:Python DockerBuildWorkflow.prebuild_results[PLUGIN_CHECK_AND_SET_PLATFORMS_KEY]方法的具体用法?Python DockerBuildWorkflow.prebuild_results[PLUGIN_CHECK_AND_SET_PLATFORMS_KEY]怎么用?Python DockerBuildWorkflow.prebuild_results[PLUGIN_CHECK_AND_SET_PLATFORMS_KEY]使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类atomic_reactor.inner.DockerBuildWorkflow
的用法示例。
在下文中一共展示了DockerBuildWorkflow.prebuild_results[PLUGIN_CHECK_AND_SET_PLATFORMS_KEY]方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: mock_workflow
# 需要导入模块: from atomic_reactor.inner import DockerBuildWorkflow [as 别名]
# 或者: from atomic_reactor.inner.DockerBuildWorkflow import prebuild_results[PLUGIN_CHECK_AND_SET_PLATFORMS_KEY] [as 别名]
def mock_workflow(tmpdir):
workflow = DockerBuildWorkflow(MOCK_SOURCE, 'test-image')
mock_source = MockSource(tmpdir)
setattr(workflow, 'builder', MockBuilder())
workflow.builder.source = mock_source
flexmock(workflow, source=mock_source)
workflow.prebuild_results[PLUGIN_CHECK_AND_SET_PLATFORMS_KEY] = set(['x86_64', 'ppc64le'])
setattr(workflow.builder, 'df_dir', str(tmpdir))
return workflow
示例2: workflow
# 需要导入模块: from atomic_reactor.inner import DockerBuildWorkflow [as 别名]
# 或者: from atomic_reactor.inner.DockerBuildWorkflow import prebuild_results[PLUGIN_CHECK_AND_SET_PLATFORMS_KEY] [as 别名]
def workflow(tmpdir):
if MOCK:
mock_docker()
buildstep_plugin = [{
'name': OrchestrateBuildPlugin.key,
'args': {
'platforms': ODCS_COMPOSE_DEFAULT_ARCH_LIST
},
}]
workflow = DockerBuildWorkflow(MOCK_SOURCE, 'test-image', buildstep_plugins=buildstep_plugin, )
workflow.builder = MockInsideBuilder(tmpdir)
workflow.source = workflow.builder.source
workflow._tmpdir = tmpdir
workflow.prebuild_results[PLUGIN_CHECK_AND_SET_PLATFORMS_KEY] = set(
ODCS_COMPOSE_DEFAULT_ARCH_LIST)
setattr(workflow.builder, 'base_image_inspect', {})
mock_reactor_config(workflow, tmpdir)
mock_repo_config(tmpdir)
mock_odcs_request()
workflow._koji_session = mock_koji_session()
return workflow