This repository was archived by the owner on Aug 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
race builds don't work in our docker images #1150
Labels
Comments
switch to debian +
|
note, size comparison:
we might be able to make the alpine images lighter via the building is also much slower. |
This was referenced Nov 26, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
(note: you can build race builds using
make bin-race
)the race detector requires CGO, which means dynamic linking, which causes breakage when we try to run the binary in our docker image based on alpine.
the container will log:
from golang/go#12122:
Below are some attempts to resolve this
trying to enforce the go net resolver rather than cgo
results in
note that this still links to libc, so that's why the startup fails.
same, but with installing glibc in alpine
=> not compatible with the libc that go needs for the race detector.
this is a known issue. golang/go#14481
trying to switch to debian
this breaks
make docker
the apt-get commands trigger:
people recommend addressing this with a command that also fails.
perhaps it is supposed to be run on the host, but i'm not sure if i want to try that, seems this is getting a bit out of hand.
The text was updated successfully, but these errors were encountered: