docs: remove module.wasm.image/variant=compat annotation

After https://github.com/containers/podman/pull/18542 does not include image annotations
when building spec , podman does not propagates annotations while running the image hence
use `--platform wasi/wasm`.

Signed-off-by: Aditya R <arajan@redhat.com>
This commit is contained in:
Aditya R
2023-06-06 13:24:16 +05:30
parent 12cf4fe1fa
commit ef224f9925

View File

@@ -42,9 +42,9 @@ This is from a main function from a wasm module
COPY hello.wasm /
CMD ["/hello.wasm"]
```
* Build wasm image using buildah with annotation `module.wasm.image/variant=compat`
* Build wasm image using buildah
```console
$ buildah build --annotation "module.wasm.image/variant=compat" -t mywasm-image .
$ buildah build --platform=wasi/wasm -t mywasm-image .
```
* Make sure your podman points to oci runtime `crun` build with `wasm` support.
* Run image using podman