deislabs / containerd-wasm-shims

containerd shims for running WebAssembly workloads in Kubernetes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't make entrypoint executable.

Mossaka opened this issue · comments

One breaking thing from the user side is that they no longer can just do command: ["/"] in pod spec. This is because the youki libcontainer verifies that the first argument to ENTRYPOINT must be an executable bianry. So that to build a spin image, we have to do:

COPY --from=build --chmod=0755 /opt/build/target/wasm32-wasi/release/spin_rust_hello.wasm .
COPY --from=build /opt/build/spin.toml .
ENTRYPOINT [ "./spin_rust_hello.wasm" ]

This isn't super desired and I expect that this will go away once this issue closes.

Originally posted by @Mossaka in #119 (comment)

Resolved by #131