-
Notifications
You must be signed in to change notification settings - Fork 33
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
Error compilation on Alpine #271
Comments
Hi @sleipnir 👋 Thanks for reporting this issue. I myself never compiled wasmex in alpine, but would like to give it a try. Do you have an example docker file handy to reproduce this error? |
I got some progress - it seems that Rust cannot yet work on alpine (musl host toolchain) because of some dynamic linking issues 👉 rust-lang/rust#59302 However, there seems to be a workaround by setting the following environment variable with some rust flags:
When adding this ENV to your Dockerfile:
it can successfully build. I didn't try further and haven't run your app (or wasmex in there) as I don't know the specifics of your app or how to use it. But this seems to be a good start. Let me know if this worked out. |
Thank you very much for your help. |
Glad to hear. Feel free to open another if there are more roadblocks. Also, just if you want, tell me how using wasmex worked out for massa. Hearing these kinds of stories (even if not successful) is super interesting for me and keeps me motivated :) |
Massa is a Sidecar proxy that implements the Cloudstate protocol for Stateful Serveless Functions. |
When I try to compile a docker image with Wasmex in Alpine I get the following error below:
I tried to install the correct target via rustup but the error persists.
RUN rustup toolchain install nightly && rustup update && rustup target add wasm32-unknown-unknown --toolchain nightly
The text was updated successfully, but these errors were encountered: