Code Monkey home page Code Monkey logo

Comments (8)

c0mm4nd avatar c0mm4nd commented on June 15, 2024 1

Docker is an important platform for deploying and distributing go applications, and the alpine container can effectively reduce the size of image. So it is worth to support it.

from wasmtime-go.

alexcrichton avatar alexcrichton commented on June 15, 2024

Thanks for the report! This library uses CGO, however, and is as a result pretty dependant on the native C runtime. The prebuilt binaries checked into this repository and used on taggs only work with glibc, there's not a prebuilt binary for musl.

If you'd like, though, then we'd need to make a binary release for musl on wasmtime itself, and then that could get consumed here!

from wasmtime-go.

tschneidereit avatar tschneidereit commented on June 15, 2024

Docker is an important platform for deploying and distributing go applications, and the alpine container can effectively reduce the size of image. So it is worth to support it.

I agree that this would be great to support for this reason, yes.

If you'd like, though, then we'd need to make a binary release for musl on wasmtime itself, and then that could get consumed here!

So IIUC we'd need to add a musl build config to Wasmtime, and optionally use that in wasmtime-go?

from wasmtime-go.

c0mm4nd avatar c0mm4nd commented on June 15, 2024

It would be best that being auto-selected in alpine but optional in other linux distro.

If it impossible, providing a guide about manually installing wasmtime in system and letting wasmtime-go use external library would be also great.

from wasmtime-go.

srenatus avatar srenatus commented on June 15, 2024

So IIUC we'd need to add a musl build config to Wasmtime, and optionally use that in wasmtime-go?

I suppose if wasmtime was pushing a musl c-api tarball, we could use that here, and copy the file into build/ for the tags; from a the consuming side, it would then be a matter of importing

import (
    _ "github.com/bytecodealliance/wasmtime-go/build/linux-x86_64" # glibc
    _ "github.com/bytecodealliance/wasmtime-go/build/linux-x86_64-musl # musl
)

... but I could be missing something. 🤔

from wasmtime-go.

simar7 avatar simar7 commented on June 15, 2024

We're running into this with our project that uses OPA/wasm (which uses wasmtime-go internally). Does this mean wasmtime-go can't be used on an alpine base image until this is resolved?

from wasmtime-go.

alexcrichton avatar alexcrichton commented on June 15, 2024

It should be possible to make a custom build of Wasmtime for Alpine using musl-libc, but otherwise no, there is no precompiled binary for musl libc for you to use.

from wasmtime-go.

graywolf-at-work avatar graywolf-at-work commented on June 15, 2024

I've just hit this today, are there any specific steps I could help with?

from wasmtime-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.