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


Python DockerBuildWorkflow.prebuild_results[PLUGIN_CHECK_AND_SET_PLATFORMS_KEY]方法代码示例

本文整理汇总了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
开发者ID:projectatomic,项目名称:atomic-reactor,代码行数:13,代码来源:test_resolve_module_compose.py

示例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
开发者ID:projectatomic,项目名称:atomic-reactor,代码行数:25,代码来源:test_resolve_composes.py


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