Default to Bazel target architecture
pauldraper opened this issue Β· comments
π feature request
Relevant Rules
container_image
Description
The target architecture is always transitioned. By default it transitions to amd64.
The sensible behavior is to use the current target architecture. It's weird that it doesn't, and rules_docker seems to have gone out of its way(?) to make it like that.
Describe the solution you'd like
--
Describe alternatives you've considered
Disable rules_docker transitions and do it myself.
It should transition to the target architecture of the image, given:
rules_docker/container/image.bzl
Lines 805 to 811 in 8e70c6b
Right, and my point is that the architecture of the image should default to the Bazel target platform (--cpu
).
Currently, it defaults to amd64
rules_docker/container/image.bzl
Line 578 in 8e70c6b