Open
Description
FROM k33g/simplism:0.1.2
WORKDIR /app
COPY simplism-config.yaml .
EXPOSE 7000
CMD ["/simplism", "config", "./simplism-config.yaml", "faas-config"]
When deploying with:
curl -X POST \
http://localhost:9000/spawn \
--data-binary @- << EOF
{
"wasm-file":"./tmp/hello-world.wasm",
"wasm-function":"handle",
"wasm-url": "https://github.com/simplism-registry/hello-world/releases/download/v0.0.1/hello-world.wasm",
"discovery-endpoint":"http://localhost:7000/discovery",
"service-name": "hello-world"
}
EOF
The process fails, and the container stops:
😡 Error when spawning a new simplism process: ./tmp/hello-world.wasm fork/exec ./simplism: no such file or directory
cmd := &exec.Cmd{
Path: GetExecutablePath("simplism"),
Args: spawnArgs,
Stdout: os.Stdout,
Stderr: os.Stdout,
}
It looks like the GetExecutablePath
does not return the appropriate path