-
Notifications
You must be signed in to change notification settings - Fork 23
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
Deployment with Docker #98
Comments
I am making a demo repository to test, I will share in a bit! |
https://github.com/yanshiyason/meeseeks_docker_example OK, so this repo reproduces the current problem. Please have a look. |
I noticed that inside the |
the rust binary seems to be contained within the build artifact
Maybe it's not related to the |
This help? rusterlium/rustler#296 |
Hi @mischove, Thank you for looking into it. So the solution from the thread above seems to be to add this export this environment variable:
Which does fix the compilation step. But it does not fix the runtime problem that occurs when trying to start the app.. The error seems to stem from this module: stacktrace:
|
Is build-base installed? Edit: looking at the dockerfile it looks like it is. |
Yes, that's right, it's installed.
I am now looking into meeseeks_html5ever to see if I can find any references to the native rust binary. Edit: All I can find is the crate option and it seems to be located here inside the _build folder here after compiling:
|
running this command inside the container yielded interesting output
It seems like the meeseeks dependencies are not installed.. Edit: Ohh, and running this command printed the reason!!
Something about Edit: I think this is related: rust-lang/rustup#2213 |
Nice catch. |
Updating the dockerfile to
Solves for me. Edit: How frustrating, I even found that issue earlier when I searched for "rust x86_64-unknown-linux-musl". |
Oh!!! I went off on another goose chase because I didn't realize you were talking about the release image! (😆 ) I was trying to use that command in the build phase!! I will make a PR for instructions on deploying with Docker! I think it will help a lot other devs trying to adopt the library! Edit: Yup! Fixed it for me as well!! Thank you so much @mischov ! |
#99 |
Sorry about that, I should have been more explicit. |
Hi, I would like to start this thread in order to document what is the best way to deploy elixir apps that use meeseeks with docker. Once an answer is found, I would like to make a PR to the
deployment guide
I did not yet succeed in using Meeseeks in a docker container successfully.
My 1st attempt, was so add the same commands found in the alpine-3.11 rust Dockerfile do make rust available in my build image.
which failed with this output
A little bit of google searching and someone proposed to add this environment variable:
another run with that environment variable set, and the build succeeds, but when I try to start my application, I get this runtime error: (formatted as best as I could)
Do you have any idea what the problem may be?
The text was updated successfully, but these errors were encountered: