小编Dav*_*ory的帖子

如何在 Google Cloud Platform 上加速 bazel 构建

我正在使用gcr.io/cloud-builders/bazel在 google 容器构建上构建我的图像。

从日志来看,似乎大部分时间都在为 bazel 设置工作区。这个工作区不会因构建而改变,所以我认为可以预先计算并存储在新图像中。

如何在 Google Cloud Platform 上加速这些 bazel 构建?

Already have image (with digest): gcr.io/cloud-builders/bazel
Extracting Bazel installation...
........................
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
WARNING: /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/io_bazel_rules_go/go/def.bzl:137:3: DEPRECATED: com_github_golang_protobuf : new_go_repository is deprecated. Please migrate to go_repository soon.
WARNING: /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/io_bazel_rules_go/go/def.bzl:137:3: DEPRECATED: com_github_golang_glog : new_go_repository is deprecated. Please migrate to go_repository soon.
WARNING: /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/external/io_bazel_rules_go/go/def.bzl:137:3: DEPRECATED: org_golang_google_grpc : new_go_repository is deprecated. …
Run Code Online (Sandbox Code Playgroud)

docker google-cloud-platform bazel google-container-builder

4
推荐指数
1
解决办法
1050
查看次数