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

OTA Updates #1

Closed
mayankchhabra opened this issue Jun 24, 2020 · 4 comments · Fixed by #32
Closed

OTA Updates #1

mayankchhabra opened this issue Jun 24, 2020 · 4 comments · Fixed by #32
Assignees
Labels
feature A brand new feature

Comments

@mayankchhabra
Copy link
Member

We need a way for the users to reliably update their umbrel node over-the-air.

Whenever a new release of umbrel-compose is made, it should prompt the user on his dashboard about the new update, and should only install the update after the user explicitly confirms.

The update prompt should also include a changelog listing all the changes.

My experience with mender.io didn't bear much fruit in this regard, as mender only allows a maximum of 24 hours for the update to be deployed on a device after it's been released (as their product is focused on IoT devices and not end-user interactive devices).

Nonetheless, the update scripts that I wrote when testing mender's update module can still very much be used by our custom solution.

@nolim1t
Copy link
Contributor

nolim1t commented Jun 25, 2020

Or just take a diff of whats on master or a tagged version for docker-compose and apply the patch if the user agrees

@nolim1t
Copy link
Contributor

nolim1t commented Jun 25, 2020

So flow would be.

  1. Fetch docker-compose to a temporary location (eg. docker-compose.yml.ota)
  2. Apply all configuration changes (RPCPASS and RPCPORT) to the file
  3. do a diff between the two files and make a patch file
  4. If the patch file exists, as the user to do an update

@mayankchhabra
Copy link
Member Author

I haven't worked with patch files yet, so not sure how it works. But here was my approach:
https://github.com/mayankchhabra/umbrel-compose/blob/8d61be12f49adbb34c1a7507986939d003c942aa/update-scripts/install.sh#L42

@nolim1t
Copy link
Contributor

nolim1t commented Jun 25, 2020

to make a patchfile

diff -u docker-compose.yml docker-compose.yml.new > version.patch

version.patch contains ALL the changes.

Applying the patch

patch docker-compose version.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A brand new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants