-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Cannot install python wasmtime on Alpine OS docker container #995
Comments
Thanks for the report! At this time we only support glibc binary releases, and to install on Alpine you'll need to compile from source against musl. |
If it helps as well, here's an example of how to build it in alpine: FROM alpine
# Install build tools
RUN apk add musl-dev g++ curl git
# Install nightly Rust
ENV CARGO_HOME=/cargo RUSTUP_HOME=/rustup PATH=$PATH:/cargo/bin
RUN curl https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly
# Download and build wasmtime, note that we configure the musl target for
# dynamic linkage here instead of the default static.
RUN git clone https://github.com/bytecodealliance/wasmtime --recursive
WORKDIR /wasmtime
ENV RUSTFLAGS=-Ctarget-feature=-crt-static
RUN cargo fetch
RUN cargo build --release
# Download python and such to build the python extension
RUN apk add python3
RUN pip3 install setuptools wheel setuptools-rust
RUN cd crates/misc/py && python3 setup.py bdist_wheel |
Thanks for the tip! |
I think this can be closed. If not at least it should be moved to https://github.com/bytecodealliance/wasmtime-py. |
Indeed yes I think the wasmtime-py bits have changed enough that this is no longer relevant as-is. |
@alexcrichton is this answer still true? I had opened bytecodealliance/wasmtime-dotnet#82 this morning, but further investigation revealed it was not an issue specific to the dotnet build as I can reproduce the same behavior with python. |
That is probably the same kind of error. However it is something that needs to be separately fixed for both. For example by adding a new build for musl based systems. |
Yes the |
Cannot install python wasmtime on Alpine OS docker container
I think this has something to do with this: docker-library/docs#904
Getting
The text was updated successfully, but these errors were encountered: