【问题标题】:Google Cloud Container Builder from Cloud Source Repository来自 Cloud Source Repository 的 Google Cloud Container Builder
【发布时间】:2016-07-04 05:09:41
【问题描述】:

是否可以使用 Google Cloud Container Builder 从 Google Cloud Source Repository 中的源代码构建 docker 容器?

docs 说代码必须在 Cloud Storage 中,所以我认为答案是否定的,但这似乎很疯狂。我错过了什么吗?是否可以通过 Cloud Storage 访问 Google 源代码中的代码?

【问题讨论】:

    标签: google-cloud-storage google-container-registry


    【解决方案1】:

    此功能现已公开支持,请参阅https://cloud.google.com/container-builder/docs/api/reference/rest/v1/projects.builds#RepoSource 的 API 文档

    如果您有任何问题或功能请求或未涵盖的用例,请告诉我们。

    【讨论】:

      【解决方案2】:

      不幸的是,API 相当低级,因此目前无法直接从 GSR 或其他源代码控制系统构建。

      但是,可以编写一个服务来监视您最喜欢的 SCM 的源代码更改,将该源代码复制到 GCS 存储桶中(根据需要处理您的 SCM 身份验证),然后触发 Container Builder API 来构建映像。

      Google 正在为基于此 API 构建的其他工具运行 Alpha 程序。有兴趣的可以sign up here

      【讨论】:

        猜你喜欢
        • 2020-08-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-01-15
        • 2018-05-18
        • 1970-01-01
        • 2020-11-25
        相关资源
        最近更新 更多