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

Mounting files into the container in the browser? #186

Open
adamnovak opened this issue Jan 3, 2024 · 2 comments
Open

Mounting files into the container in the browser? #186

adamnovak opened this issue Jan 3, 2024 · 2 comments
Labels
question Further information is requested

Comments

@adamnovak
Copy link

An example is given for mounting files into the container when running on a stand-alone WASI runner, but not in the context of the browser.

If I have a File or a Blob in hand in JavaScript when I am setting up the emulator, how would I expose that to the container at a certain path?

Bonus points if I can also mount something writable, like a resizable ArrayBuffer.

@alienself
Copy link

I am wondering the exact same thing, would be wonderful if we had the ability to attach files to a container in the browser

@ktock
Copy link
Owner

ktock commented Jan 4, 2024

@adamnovak For container on WASI on browser configuration, you can provide file or directories as pre-opened fds to the container .

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

No branches or pull requests

3 participants