-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux binary (0.29.0+) depends on glibc, won't run on alpine as-is #3499
Comments
When enabling Wasm for all the platform binaries, we've gotten ourselves a libc runtime dependency, it seems:
(this is using alpine:latest) |
If this blocks you, you should be able to build a binary without all that using |
👉 bytecodealliance/wasmtime-go#21 So, here's a cross road: North: Wait for wasmtime to build a musl version, and use that for extra musl binaries (stretch: do the same thing ourselves) @johanneslarsson this is probably a problem for a few folks, but since you've come across it first: How strongly are you attached to using the alpine image? The one we're using to build the docker container is pretty slim, too: There seems to be an alpine-glibc image, too, as another workaround:
|
It doesn't really block us. Just trying to stay up to date 🥇 . I probably want to avoid building it ourselves for now. |
Since I haven't got the sales pitch for WASM, (yet). I would just say: https://www.youtube.com/watch?v=LNBjMRvOB5M&ab_channel=PetShopBoysParlophone |
So, I think the only sweet spot is building the OPA binary with musl linked in. It'll run on any linux system (🤞), and we can still keep wasm enabled. A prerequisite is musl support in wasmtime and wasmtime-go. I'm looking into that... 🔍 |
@srenatus I see that I forgot to answer the image question, without going into details, let's say that it would be more work than replacing the |
I'll head north for a bit and see how far it is... (😉 bytecodealliance/wasmtime#2951) |
Thanks. Let me know if you reach Oslo and I'll offer you a cold one (🍺). |
OK, it's windy and cold up north. I'll try going west today 🚂 |
Considering the price of a beer in Oslo, that's an extremely generous offer @johanneslarsson 😆 |
Fixes open-policy-agent#3499. Signed-off-by: Stephan Renatus <[email protected]>
* build: add static (wasm-disabled) linux build Fixes #3499. Also: * build: deprecate 'release' and 'release-local' targets that aren't used in our build anymore, and will go away eventually. Signed-off-by: Stephan Renatus <[email protected]>
I'll get a 0.29.4 out with these binaries included. |
☝️ There's an extra binary for your use case now, in v0.29.4 |
Yay, thanks will try it out. |
Similar things happen on Centos 7, it seems:
|
Experimented with it a bit more here: srenatus#9 It looks like it works, except there are a few warnings at build time:
...I can't tell if they're a show-stopper for this. |
Expected Behavior
Actual Behavior
Steps to Reproduce the Problem
Additional Info
Works fine in latest Ubuntu for example
The text was updated successfully, but these errors were encountered: