Skip to content

Commit ab2f8bb

Browse files
committed
add docker remote execution configs for amd64 and arm64
1 parent 07903c1 commit ab2f8bb

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.bazelrc

+17-3
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,23 @@ test --define kafka_enabled=false
3131
run --define kafka_enabled=false
3232

3333

34-
# debug
34+
# toolchain build debug config
3535
build:debug --sandbox_debug
3636
build:debug --toolchain_resolution_debug
3737
build:debug --verbose_failures
3838

39-
# linux_amd64, not strictly necessary since host/exec env is amd64
39+
# linux_amd64 conifg for cross compiler toolchain, not strictly necessary since host/exec env is amd64
4040
build:linux_amd64 --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo
4141

4242
# linux_amd64_debug
4343
build:linux_amd64_debug --config=linux_amd64
4444
build:linux_amd64_debug --config=debug
4545

46-
# linux_arm64
46+
# linux_amd64 docker sandbox build config
47+
build:linux_amd64_docker --config=linux_amd64_debug
48+
build:linux_amd64_docker --config=docker-sandbox
49+
50+
# linux_arm64 conifg for cross compiler toolchain
4751
build:linux_arm64 --crosstool_top=//tools/cross-toolchain:multiarch_toolchain
4852
build:linux_arm64 --platforms=@io_bazel_rules_go//go/toolchain:linux_arm64_cgo
4953
build:linux_arm64 --copt=-funsafe-math-optimizations
@@ -57,3 +61,13 @@ build:linux_arm64 --copt=-march=armv8-a
5761
build:linux_arm64_debug --config=linux_arm64
5862
build:linux_arm64_debug --config=debug
5963

64+
# linux_arm64 docker sandbox build config
65+
build:linux_arm64_docker --config=linux_arm64_debug
66+
build:linux_arm64_docker --config=docker-sandbox
67+
68+
# Docker Sandbox Mode - Note all docker sandbox configs must run from a linux x86_64 host
69+
build:docker-sandbox --experimental_docker_image=suburbandad/cross-clang-10:latest
70+
build:docker-sandbox --spawn_strategy=docker --strategy=Javac=docker --genrule_strategy=docker
71+
build:docker-sandbox --define=EXECUTOR=remote
72+
build:docker-sandbox --experimental_docker_verbose
73+
build:docker-sandbox --experimental_enable_docker_sandbox

0 commit comments

Comments
 (0)