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

Support developing applications that use multiple individual containers #28

Closed
krzychb opened this issue Dec 12, 2021 · 3 comments · Fixed by #228
Closed

Support developing applications that use multiple individual containers #28

krzychb opened this issue Dec 12, 2021 · 3 comments · Fixed by #228
Labels
enhancement New feature or request

Comments

@krzychb
Copy link

krzychb commented Dec 12, 2021

Jaguar works by loading the application into a separate container, but it only runs one at a time. We start installing the program here https://github.com/toitlang/jaguar/blob ... r.toit#L49 (this is what kills the old version of the program) and we start running it here https://github.com/toitlang/jaguar/blob ... r.toit#L60.

This issue is suggesting to implement a new feature to load the applications into individual containers identified by the name: <App name> from https://docs.toit.io/platform/apps/appspec/#the-specification-file

Inspired by https://esp32.com/viewtopic.php?f=2&t=24941#p88621

@kasperl kasperl added the enhancement New feature or request label Dec 12, 2021
@kasperl
Copy link
Member

kasperl commented Dec 12, 2021

Being able to develop apps that run across multiple containers using Jaguar seem useful.

@kasperl kasperl changed the title Provide a way to run the applications from individual containers Support developing applications that use multiple individual containers Dec 12, 2021
@kasperl
Copy link
Member

kasperl commented Aug 30, 2022

@krzychb Finally made some progress with this. Once #228 lands, you can install multiple containers and have them run side by side using:

$ jag container install hello examples/hello.toit
$ jag container install http examples/http/http.toit
$ jag container list
718b6ac6-860c-58af-8ef7-f694e7284dc6: jaguar
0b777bc9-d58c-56b2-a030-1738f48888b1: hello
6173c8b0-be07-5b2e-852a-1e9cc5847a3a: http

@kasperl kasperl linked a pull request Aug 30, 2022 that will close this issue
@krzychb
Copy link
Author

krzychb commented Aug 30, 2022

Thank you @kasperl!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

2 participants