weaveworks / ignite

Ignite a Firecracker microVM
https://ignite.readthedocs.org
Apache License 2.0
3.49k stars 223 forks source link

Is an SDK or a "cmd and run separation" planned? #944

Open lennybakkalian opened 1 year ago

lennybakkalian commented 1 year ago

Is a proper separation between cmd and logic in planning? This would allow developers to use ignite as sdk.

For example: If you want to execute a command programmatically in the container (because entrypoints are unfortunately not supported) a method runSSH is executed in which defer os.Exit is called, which is of course impractical :D

Another example would be the creation of vm's. There is a method that takes []string args and a FlagSet and directly builds a vm. A separation between the cmd and run package would be very useful.

I think this project is only used in projects where untrusted user code is executed in a sandbox. A SDK would make a lot of sense here, since this type of vm's are created programmatically anyway.

Unfortunately there is not so much active work on this project although I think it has a lot of potential!