Imported Upstream version 1.21.0
[platform/upstream/grpc.git] / third_party / toolchains / BUILD
1 # Copyright 2017 gRPC authors.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 licenses(["notice"])  # Apache v2
16
17 package(default_visibility = ["//visibility:public"])
18
19 alias(
20     name = "rbe_windows",
21     actual = ":rbe_windows_1803",
22 )
23
24 # RBE Windows
25 platform(
26     name = "rbe_windows_1803",
27     constraint_values = [
28         "@bazel_tools//platforms:x86_64",
29         "@bazel_tools//platforms:windows",
30         "@bazel_tools//tools/cpp:msvc",
31     ],
32     remote_execution_properties = """
33         properties: {
34           name: "container-image"
35           value:"docker://gcr.io/grpc-testing/rbe_windows_toolchain@sha256:689b177e4a157c431c7077d19d043de27922c37de835031f29c9093b8d5c6370"
36         }
37         properties: {
38           name: "gceMachineType"  # Small machines for majority of tests.
39           value: "n1-highmem-2"
40         }
41         properties:{
42             name: "OSFamily"
43             value: "Windows"
44         }
45
46         """,
47 )
48
49 # RBE Ubuntu16_04 r346485
50 platform(
51     name = "rbe_ubuntu1604",
52     parents = ["@rbe_default//config:platform"],
53     constraint_values = [
54         "//third_party/toolchains/machine_size:standard",
55     ],
56     remote_execution_properties = """
57         {PARENT_REMOTE_EXECUTION_PROPERTIES}
58         properties: {
59           name: "gceMachineType"  # Small machines for majority of tests.
60           value: "n1-highmem-2"
61         }
62         properties: {
63             name: "dockerSiblingContainers"
64             value: "false"
65         }
66         properties: {
67             name: "dockerNetwork"
68             value: "off"
69         }
70         properties: {
71             name: "dockerAddCapabilities"
72             value: "SYS_PTRACE"
73         }
74         properties: {
75             name: "dockerPrivileged"
76             value: "true"
77         }
78         """,
79 )
80
81 platform(
82     name = "rbe_ubuntu1604_large",
83     parents = ["@rbe_default//config:platform"],
84     constraint_values = [
85         "//third_party/toolchains/machine_size:large",
86     ],
87     remote_execution_properties = """
88         {PARENT_REMOTE_EXECUTION_PROPERTIES}
89         properties: {
90           name: "gceMachineType"  # Large machines for some resource demanding tests (TSAN).
91           value: "n1-standard-8"
92         }
93         properties: {
94             name: "dockerSiblingContainers"
95             value: "false"
96         }
97         properties: {
98             name: "dockerNetwork"
99             value: "off"
100         }
101         properties: {
102             name: "dockerAddCapabilities"
103             value: "SYS_PTRACE"
104         }
105         properties: {
106             name: "dockerPrivileged"
107             value: "true"
108         }
109     """,
110 )
111
112 platform(
113     name = "local",
114     parents = ["@bazel_tools//platforms:target_platform"],
115     constraint_values = [
116         "//third_party/toolchains/machine_size:standard",
117     ],
118 )
119
120 platform(
121     name = "local_large",
122     parents = ["@bazel_tools//platforms:target_platform"],
123     constraint_values = [
124         "//third_party/toolchains/machine_size:large",
125     ],
126 )