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
Docker with ruby alpine image throws error #70
Comments
I was just checking again. I think there is an issue with ruby 2.6.0 I created a new rails app, added
|
Try to use gem gem "google-protobuf", git: "https://github.com/google/protobuf" See: |
I am not really sure if this problem is related to anycable but it appears when launching it. I just tried again with a simple docker file
result
|
I uploaded a simple demo image to docker https://hub.docker.com/r/coinfalcon/anycable |
Isn't it the same as anycable/anycable#47 ? |
Seems to be similar but if you check the docker image, |
@palkan could you have a look into that docker image as you already worked with some alpine and anycable? |
@coinfalcon-github As I see, the exception is raised when we try to initialize the server:
My guess (I haven't tried your image yet, will try to find some time later this week) is that there is something wrong with the bind address (maybe, port is not available or host name). |
@palkan did you already had a chance to look into it? |
@coinfalcon-github no, not yet |
I made it work by adding See example Dockerfile: https://github.com/anycable/anycable/blob/master/etc/Dockerfile.alpine |
do you know why it solves the problem? |
As I understand, that makes Bundler ignore precompiled binaries, and thus build them from scratch. Looks like the platform they use to build these binaries is not compatible with alpine (or, probably, requires some additional shared libs which are missing). |
closing, thanks! |
@palkan I am trying to get AnyCable to work in Alpine. I am using
Any idea of how to fix? Thanks! |
Have you seen https://github.com/anycable/anycable/blob/master/etc/Dockerfile.alpine? Compare the list of installed package as. Probably, something is missing. |
Hi @palkan yes, I did see that example and I had the same basically. I didn't want to waste too much time with it so I switched back to Debian and all is good. Thanks |
I was getting:
Adding this, helped:
|
I am getting the following when running
bundle exec anycable
. I guess that some library is missing in ruby alpine?Edit: it does not only happen with alpine, I tried slim image too, same error
The text was updated successfully, but these errors were encountered: