Skip to content
New issue

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

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

Already on GitHub? # to your account

[feature] Firecracker/Docker code execution from wasm #183

Open
samyfodil opened this issue Jun 6, 2024 Discussed in #157 · 0 comments
Open

[feature] Firecracker/Docker code execution from wasm #183

samyfodil opened this issue Jun 6, 2024 Discussed in #157 · 0 comments
Labels
feature New feature or request

Comments

@samyfodil
Copy link
Contributor

Discussed in https://github.com/orgs/taubyte/discussions/157

Originally posted by samyfodil May 22, 2024
Executing code that cannot be run on WebAssembly, either because it can't be compiled or using a compiled interpreter is not feasible or too restrictive, will be a powerful feature. This capability will also be beneficial for testing code generated by LLMs. The idea is to execute such code within a container.

Requirements

We need the following primitives:

  1. Container Management:

    • Spin up and shut down a container.
    • Optionally, implement a way to make containers persistent or "sticky" for repeated use.
  2. Code Handling:

    • Load code into the container.
  3. Execution:

    • Execute the loaded code.
  4. Output Retrieval:

    • Retrieve the output from the executed code.

Container Engine Selection

  • Use Firecracker if the system is running on Linux.
  • Use Docker if the system is not running on Linux.
@samyfodil samyfodil added the feature New feature or request label Jun 6, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant