Comments (8)
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.
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.
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.
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.
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.
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.
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.
I've just hit this today, are there any specific steps I could help with?
from wasmtime-go.
Related Issues (20)
- Is it possible to dynamically link several wasm modules in Go host? HOT 6
- Works with wit-bindgen? HOT 3
- Out of bounds memory access panic HOT 5
- Support for ARM macs with bazel
- Allocation too large< ~lib/rt/itcms.ts<$Index out of range,~lib/rt.ts HOT 4
- Add changelog/releases info HOT 1
- SetMaxWasmStack fails with async_stack_size error HOT 6
- Please elaborate on installation instructions for unsupported platforms HOT 1
- Does debugging work when embedding in go like rust? HOT 1
- Equivalence for `WasiCtx.insert_file` from wasmtime_wasi Rust crate HOT 14
- Minor release HOT 4
- Windows build failure: undefined reference to `_setjmp' HOT 7
- Error out when using wasmtime-go to run Python code HOT 2
- Compilation failure on 32-bit systems HOT 3
- How to monitor memory usage HOT 4
- Go get latest version failed
- Missing V15 features.component_model in config HOT 3
- Support v16? HOT 2
- Feature request: support manual freeing of resources HOT 2
- No compiled main function from file called HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasmtime-go.