-
Notifications
You must be signed in to change notification settings - Fork 11
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
Build binaries for Alpine #16
Conversation
Thanks for the pr, will check next week! |
Thank you. This is incomplete, because there are no alpine binaries for gcstats. I'm looking into that too, but it might take some time. And the original gcstats is not maintained, so we'll need to use an alternative fork, as proposed by @adnanraic. Will you consider that? |
I'll think about that. Another way to go is to drop the need for gc-stats altogether, as it's only needed for |
Or you can change it to an optionalDependency (with proper protection on require), then I'll be able to install oom-heapdump without build tools, as long as I don't need gc monitoring. |
Yes, that's possible as well. But it might be unexpected that |
Did you run this on your repo? I see no github actions there. |
I did this 3 years ago, I no longer remember. :) Just stumbled upon the repo on my disk and remembered. |
Is this pr still relevant? E.g. Are prebuilt binaries still requested for alpine? |
Looks like the existing binaries are linked with glibc, so it should be needed, yes. |
I will take a look, thanks |
@orgads it has been released to npm, can you check if this works for you? |
hmm... Actually it looks like the original build works on alpine as well. I wonder how it works... 🤔 I guess you can revert the alpine parts of this change then. Sorry for the noise. |
As long as you have the build tools in place, it will compile it from source indeed. |
I tested with 3.2.3 without installed build tools. I verified that the binary was not linked with musl, and that it was not built locally (the modification timestamp of the file was from a month ago). It doesn't harm though, so it's your choice :) |
Strange, how is it able to call into native code then? Or do you have oom monitoring disabled? Then it would indeed work without compilation. |
No, it does use the native bindings. Here:
This is what ChatGPT had to say about it: https://chatgpt.com/share/40b7f4f3-7bbf-406d-aef6-7375063f7107 :) The bottom line is that it might be ok for simple API calls, but it is recommended to build separately for musl. |
Thanks for the details, didn’t know how that worked n alpine. Let's keep it in for now :) |
No description provided.