Open eikemeier opened 2 years ago
Same for go_image
; 0.22.0 works, 0.23.0 doesn't. According to git bisect
, seems to be introduced in:
Transition container image target platform (#1963) 76c708fc979c1bfb65b4db300c654be08f096874
Same for py3_image
, 0.22.0 works and 0.23.0 doesn't. Hopefully this can be fixed soon :)
Is anyone looking into this issue? Any workaround other than going back to 0.22?
We've had to prepare a cross-compiling C toolchain to use on macOS in order to make this work. Ultimately, we picked one based on musl, since that's most likely to work on most linux variants, but we've also had to patch rules_go
to force go_binary
to statically link when building for a docker image. Getting this working properly has been a pretty significant piece of work.
If anyone is following in our footsteps, we started off from musl-cross-make
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_docker!
I don't think this is closable, I'm still locked to 0.22 waiting on a fix for this.
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_docker!
As before, this is still an unaddressed issue and should not be closed.
With py3_image
, for 0.25 we are still having this problem.
🐞 bug report
Affected Rule
The issue is caused by the rule:
java_image
Is this a regression?
Yes, the previous version in which this bug was not present was: 0.22.0
Description
When building a simple Java Docker image on macOS, the build fails with “No matching toolchains found”. It works on Linux, since the target and host platforms are identical.
🔬 Minimal Reproduction
See https://github.com/eikemeier/java-container
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_docker version:
Anything else relevant?
See also https://github.com/bazelbuild/rules_docker/issues/1988#issuecomment-1016465174