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

[devices] Implement an update mechanism for devices #150

Closed
frgfm opened this issue Apr 2, 2021 · 0 comments · Fixed by #151
Closed

[devices] Implement an update mechanism for devices #150

frgfm opened this issue Apr 2, 2021 · 0 comments · Fixed by #151
Assignees
Milestone

Comments

@frgfm
Copy link
Member

frgfm commented Apr 2, 2021

In order to avoid requiring ssh access to our devices, it would be handy for them to check whether they need to update and automatically do it if necessary.

Context

  • the device needs to be able to check which software/docker version it needs
  • depending on the result of the comparison with its current version, it might need to go download the software (outside of the scope of this repo)

Implementation suggestion

I gave it some thoughts and here is what I suggest:

  • similarly to the specs field (which we should rename to hardware_specs), we introduce a software_hash field.
  • the corresponding value will be a deterministic result for a given software config (let's say the docker image hash, or the commit hash)
  • just like devices that will ping regularly, the device will come check the software_hash. If it's different from the one it uses, then it updates.

I strongly suggest going for the commit hash, at least to check the mechanism

What do you think @pyronear/back-end ?

@frgfm frgfm added this to the 0.1.2 milestone Apr 2, 2021
@frgfm frgfm self-assigned this Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant