diff options
author | Nicolas Lopez <nlopezgi@gmail.com> | 2018-06-28 00:42:43 -0400 |
---|---|---|
committer | Gunhan Gulsoy <gunan@google.com> | 2018-06-27 21:42:43 -0700 |
commit | 8ad1cfc2b17ce3735abf852fd4e0d6b9eef16f91 (patch) | |
tree | 3c80f0dcabe663e4b719f766fd51425d41e64606 /third_party/toolchains | |
parent | 3c76b14495b1ddb4e373d64cc135224adadbfd77 (diff) |
create platform for remote execution (#20365)
* create platform for remote execution
* Platform target defines container to use for remote builds.
* This PR is part of the process to deprecate use of
experimental_remote_platform_override which will consolidate the
definition of the container to use for remote builds.
* also update dockerfile for rbe to indicate base is Ubuntu 16-04
* remove rev from build file (set in dockerfile)
Diffstat (limited to 'third_party/toolchains')
-rw-r--r-- | third_party/toolchains/BUILD | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/third_party/toolchains/BUILD b/third_party/toolchains/BUILD new file mode 100644 index 0000000000..fc3183a754 --- /dev/null +++ b/third_party/toolchains/BUILD @@ -0,0 +1,22 @@ +licenses(["restricted"]) + +package(default_visibility = ["//visibility:public"]) + +# Platform for use with remote execution with +# custom container based off RBE Ubuntu16_04 +# http://gcr.io/cloud-marketplace/google/rbe-ubuntu16-04 +# Built with //tensorflow/tools/ci_build/Dockerfile.rbe.cpu +platform( + name = "rbe_ubuntu16_04-tf", + constraint_values = [ + "@bazel_tools//platforms:x86_64", + "@bazel_tools//platforms:linux", + "@bazel_tools//tools/cpp:clang", + "@bazel_toolchains//constraints:xenial", + ], + remote_execution_properties = """ + properties: { + name: "container-image" + value:"docker://gcr.io/asci-toolchain/nosla-ubuntu16_04-tf@sha256:800a7b68cabef15419695c188ed33ed70adf678c2371b97b236f3ae26c38274d" + }""", +) |