1#@IgnoreInspection BashAddShebang
2# Copyright 2022 The gRPC Authors
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#     http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16# bazelrc to configure bazel to use RBE remote executors to build and run tests.
17
18import %workspace%/tools/remote_build/include/rbe_base_config.bazelrc
19
20# configure backend for remote execution
21build --remote_executor=grpcs://remotebuildexecution.googleapis.com
22
23build --spawn_strategy=remote
24build --strategy=Javac=remote
25build --strategy=Closure=remote
26build --genrule_strategy=remote
27build --remote_timeout=7200  # very large value to avoid problems like https://github.com/grpc/grpc/issues/20777
28
29# In the remote execution environment, each test gets its own docker containers
30# and port server won't be available.
31build --define GRPC_PORT_ISOLATED_RUNTIME=1
32
33# TODO(jtattermusch): is this still required for remote execution to work?
34# TODO(jtattermusch): Option 'experimental_strict_action_env' is deprecated: Use --incompatible_strict_action_env instead
35build --experimental_strict_action_env=true
36# TODO(jtattermusch): is this still required for remote execution to work?
37build --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
38