grpc/templates/tools/dockerfile
Ming-Chuan d6bb391449 [Build] Migrate Android NDK, android rules and platforms (#36116)
This commit does the following 3 things for Android bazel rules, which depends on each other

1. Update NDK to 26.2.11394342 (and a few other Android things)
2. Use rules_android_ndk instead of builtin `native.android_ndk_repository`
    * `third_party/android/android_configure.bzl` was a workaround for users who don't set `$ANDROID_NDK_HOME` env var. Now with rules_android_ndk, we can declare repo without registering the toolchain. Instead users who need NDK toolchain should use `--extra_toolchains` to manually register the toolchain, as shown in README.md.
3. Migrate to platforms. See https://bazel.build/concepts/platforms
    * Currently we declares android platforms that is needed for binder transport APK. Later gRPC repo can gradually migrate to platforms for other platforms.
    * The value of `crosstool_top` will still be `//external:android/crosstool` (which is the default value), so existings android `config_settings` will still work. We should migrate them to match with `@platforms//os:android` constraint later.

The platforms migration needs Bazel 7.0 to work so we also override bazel version in testing scripts.

Closes #36116

PiperOrigin-RevId: 617244655
2024-03-19 11:46:15 -07:00
..
distribtest [CI] Upgraded the docker images for Ruby Distrib Tests (#35911) 2024-02-14 13:34:40 -08:00
grpc_clang_format [CI] Using clang-17 for clang tidy & format (#35595) 2024-01-23 10:19:25 -08:00
grpc_clang_tidy [CI] Using clang-17 for clang tidy & format (#35595) 2024-01-23 10:19:25 -08:00
interoptest [CI] Upgraded the docker images for Ruby Distrib Tests (#35911) 2024-02-14 13:34:40 -08:00
test [Build] Migrate Android NDK, android rules and platforms (#36116) 2024-03-19 11:46:15 -07:00
apt_get_basic.include [docker images] Consolidate git directory ownership workaround and upgrade ccache (#34035) 2023-08-17 00:28:21 +02:00
bazel.include [bazel] Upgrade bazel repo-wide to 6.3.2 (#34088) 2023-08-18 10:11:33 +02:00
buildifier.include Add buildifier sanity check 2019-11-05 14:03:52 -08:00
ccache.include [docker images] Consolidate git directory ownership workaround and upgrade ccache (#34035) 2023-08-17 00:28:21 +02:00
ccache_old.include [docker images] Consolidate git directory ownership workaround and upgrade ccache (#34035) 2023-08-17 00:28:21 +02:00
cmake.include install cmake in CXX test images 2020-08-03 19:18:39 +02:00
cmake_from_install_script.include Upgrade C++ and Python docker images to debian stable (debian 11) (#28664) 2022-01-25 10:23:01 +01:00
cmake_jessie_backports.include Fix other docker build issues 2019-03-28 15:56:08 -07:00
compile_python_36.include Upgrade Python versions for CI Dockerfiles (#29186) 2022-03-25 14:58:09 -07:00
compile_python_37.include [Python run_test] Revert "Revert "[Python run_test] Fix run_test"" (#34671) 2023-10-19 09:47:17 -07:00
compile_python_38.include [Python run_test] Revert "Revert "[Python run_test] Fix run_test"" (#34671) 2023-10-19 09:47:17 -07:00
compile_python_310.include [Python run_test] Revert "Revert "[Python run_test] Fix run_test"" (#34671) 2023-10-19 09:47:17 -07:00
compile_python_311.include [Python run_test] Revert "Revert "[Python run_test] Fix run_test"" (#34671) 2023-10-19 09:47:17 -07:00
compile_python_312.include [Python run_test] Support Python3.12 (#35325) 2023-12-20 12:59:24 -08:00
csharp_build_interop.sh.include consolidate C# interop test docker images 2017-11-07 16:40:38 +01:00
csharp_deps.include Reintroduce #22964 with extra fixes (#26465) 2021-06-15 18:50:13 +02:00
csharp_dotnetcli_deps.include Add dockerized ARM64 tests (bazel C/C++, C#, PHP, ruby, python) (#28966) 2022-03-14 13:30:52 +01:00
cxx_deps.include Big dockerimage cleanup (#28010) 2021-12-01 12:56:26 +01:00
cxx_test_deps.include [CI] Update cxx_* docker images to install twisted (#33857) 2023-07-26 09:13:34 -07:00
gcp_api_libraries.include Big dockerimage cleanup (#28010) 2021-12-01 12:56:26 +01:00
git_avoid_dubious_ownership_error.include [docker images] Consolidate git directory ownership workaround and upgrade ccache (#34035) 2023-08-17 00:28:21 +02:00
git_avoid_dubious_ownership_error_allusers.include [bazelify tests] Add "concurrent_bazel.sh" wrapper to enable parallel invocations of bazel (#34568) 2023-10-06 01:02:40 -07:00
go_build_interop.sh.include generate go build_interop.sh from the template 2020-12-01 11:09:30 +01:00
go_path.include upgrade go docker image to golang:1.5 2016-04-21 07:11:52 -07:00
java_build_interop.sh.include Allow Gradle to use more memory when building Java interop (#30249) 2022-07-08 13:00:12 -07:00
java_deps.include Fix back slashes in the template and break the RUN steps 2016-04-19 12:24:14 -07:00
node_deps.include [docker images] Consolidate git directory ownership workaround and upgrade ccache (#34035) 2023-08-17 00:28:21 +02:00
oss_fuzz_base.include [CI] Bazel upgrade (#36104) 2024-03-15 14:08:10 -07:00
passwordless_sudo.include [bazel] Reintroduce bazelified ruby and python tests (#34033) 2023-08-16 19:00:19 +02:00
php7_deps.include Big dockerimage cleanup (#28010) 2021-12-01 12:56:26 +01:00
php_common_deps.include Big dockerimage cleanup (#28010) 2021-12-01 12:56:26 +01:00
php_valgrind.include Big dockerimage cleanup (#28010) 2021-12-01 12:56:26 +01:00
python_build_interop.sh.include Fix Python Interop (#27620) (#27703) (#27749) 2021-10-15 18:22:29 -07:00
ruby_3_0_deps.include [ruby] add distrib tests for ruby 3.1-3.3 (#35788) 2024-02-02 14:24:00 -08:00
ruby_3_1_deps.include [ruby] add distrib tests for ruby 3.1-3.3 (#35788) 2024-02-02 14:24:00 -08:00
ruby_3_2_deps.include [ruby] add distrib tests for ruby 3.1-3.3 (#35788) 2024-02-02 14:24:00 -08:00
ruby_3_3_deps.include [ruby] add distrib tests for ruby 3.1-3.3 (#35788) 2024-02-02 14:24:00 -08:00
run_tests_addons.include remove ccache from all docker images 2018-05-23 06:25:42 +02:00
run_tests_python_deps.include Big dockerimage cleanup (#28010) 2021-12-01 12:56:26 +01:00
run_tests_python_deps_pep668.include [CI] Update cxx_* docker images to install twisted (#33857) 2023-07-26 09:13:34 -07:00
rvm_mkdir_workaround.include [CI] Upgraded the docker images for Ruby Distrib Tests (#35911) 2024-02-14 13:34:40 -08:00
xds_interop_deps.include Python virtualenv dockerfile cleanup (#31139) 2022-10-04 19:20:02 +02:00