Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] What happens when we run the dotnet app on the Docker container? #22

Open
thangchung opened this issue Jun 12, 2021 · 1 comment

Comments

@thangchung
Copy link

Hi @simongdavies

Thanks for the exciting project that you have worked on.

I have a little bit of concern about what happens when I package the Dotnet AspNetCore app and run it in a Docker container.

I have a look at the code at https://github.com/deislabs/wagi-dotnet/blob/main/source/wagi/Helpers/WAGIHost.cs#L95, and know that we will leverage the wasmtime-dotnet to invoke the WebAssembly app with wasm32-wasi binding and this process will invoke directly to OS APIs.

But let says if we try to run it on the Docker container, it might call invoke through AspNetCore app -> WAGI-dotnet -> wasmtime -> Docker container -> OS or AspNetCore app -> WAGI-dotnet -> wasmtime -> OS. What kind of scenario in here?

@simongdavies
Copy link
Member

Hi @thangchung

I have not tried this, I will add a Docker test to the project but I believe that it should work as the WASM Host would provide the environment from the docker container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants