add auto start of containers#184
Conversation
|
This is going in the right direction, but as I told to @lucasbalieiro privately, it can be improved a bit IMO. The problematic scenario I see is the following: a user running Umbrel shutdowns the machine, and boots it up after a couple of hours. When the machine is back up running, the node has to sync last blocks, the The issue here is that A way to improve this is to keep trying the restart every X seconds, and if there's an error, keep showing it in the UI as usual. I pushed a commit on my fork with this proposal, you can find it here: https://github.com/GitGab19/sv2-ui/tree/gab/auto-start-reconciler Feel free to cherry-pick the commit, or simply take inspiration from it. |
69eff7e to
698ee29
Compare
698ee29 to
45bcdc7
Compare
|
cherry-picked |
|
There can be a race-condition between the manual restart and the auto-restart loop. The case can be the following:
A possible fix could be what I pushed in this commit: GitGab19@1b93454 |
|
rebased and cherry-picked GitGab19@1b93454 |

closes #181 and #182
this is adding and auto-start script when the backend starts to check if it is possible to restart the container automatically.
now if the env var

STRATUM_HOSTis detected it replaces the instructions on the dashboard:export STRATUM_HOST=google.dev && npm run dev && unset STRATUM_HOSTthere is no validation on the string that will be applied just a direct replace.
So we could set this as
umbrel.localor a direct IP depending on the case