-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Support-Request: node:12.18.1-alpine does not compile node-re2 #72
Comments
Could you share your Dockerfile so I can repro the problem? All I need is the OS + Node part. |
Thank you for your fast feedback. The error occurs in the few lines I provided in the above Dockerfile. Don't get me wrong... I get a binary but I don't know if RE2 is potentially buggy when used, as my c++ skills are limited. Also I have to potentially explain my colleagues if this is a problem or not. In later build steps I copy the node_modules/re2 folder into the production image. |
The error in the original post indicates that a downloaded image does not work. Next, it proceeds to build from sources. That's the expected behavior. I would look into why the downloaded image didn't work, but it shouldn't matter. Regarding copying the folder into the production image — that is unsupported. For example, I used to build my project (not |
I googled for the error and it turned out to be a common problem for Alpine:
It looks like there is a missing link in Thank you in advance! |
I already had tried those potential solutions, but none of them worked. Maybe it is no issue, as I get a binary file but just get that error.
|
Thank you for samples. While I assume it works for you, I will look at what is going on Alpine. In the past we had problems with versions of I can suppress errors so users are none the wiser, yet the output can provide a valuable information in cases like this one. |
That was very useful. The problem is that Alpine uses Meanwhile, in https://github.com/uhop/node-re2/tree/1.15.1 I started to suppress "scary" errors and made the verification more robust. |
I added precompiled versions for musl-based distros (like Alpine) in 1.15.2. Could you check if it works for you? BTW, when I was debugging it I've noticed some random segmentation faults when running in the cloud. According to Google it is some kind of a weird stack-related Node/Alpine bug, which was fixed in Node 13.x. Previous versions work fine on Alpine 3.9, but not on newer versions. For example: |
My dockerfile is
When building I get this:
Does somebody has a working docker file?
The text was updated successfully, but these errors were encountered: