Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
alpine-node docker image and google-cloud equals error loading ld-linux-x86-64.so.2 #8528
From @Rich-amoebaWare on October 26, 2016 22:39
I started using the google-cloud sdk a few weeks ago and was using the mhart/alpine-node image for its "slenderness". When I introduced google-cloud into my code I went to build my docker file using alpine-node to discover the following error:
Error: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /usr/src/node_modules/google-cloud/node_modules/grpc/src/node/extension_binary/grpc_node.node)
npm ERR! Linux 4.4.20-moby
I switched to using the normal node docker image based on debian and of course I don't get the error and everything works well.
However, I would like to switch back to alpine-node to get rid of all the weight...
How can I fix this error?
Copied from original issue: googleapis/google-cloud-node#1754
referenced this issue
Oct 26, 2016
I did some more investigating...and googling....and got it working. Sorry to have polluted your board. But for posterity...
I found this: http://blog.kontena.io/docker-for-mac-glibc-issues/ which pointed out that Alpine Linux uses musl libraries and by default doesn't have the glibc libraries installed or something like that....so I found a package in the Alpine Linux repository, lib6compat, and installed it when building my docker image based on mhart/alpine-node:6.9.1 and it solved the problem. My node app now works just like with the debian based node image.
referenced this issue
Feb 2, 2017
Unfortunately, I am also experiencing this issue with a recent version of Alpine leveraged by official Node.js image: node:8.7.0-alpine. So I don't believe the fix is either live or resolving. Here is the stack I see when building my Docker image:
`[nodemon] starting node dist/server.js
Error: Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /usr/app/svc-email-prelaunch/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64/grpc_node.node)
Any recommendations to move forward?
I used the repeated keyword on a type containing members string key; string value;…
On Fri, Nov 24, 2017 at 4:51 AM Ray Ch ***@***.***> wrote: @chrisalexander55 <https://github.com/chrisalexander55> Did you find any solution? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#8528 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABpcfG61jCEXHjXM0jlmb6BFeuwrbr6Pks5s5pGDgaJpZM4Khw-Y> .