UpstreamDataInc / goosebit

A simplistic, opinionated remote update server implementing hawkBit™'s DDI API.
https://goosebit.rtfd.io
Apache License 2.0
18 stars 5 forks source link

Does goosbit support RAUC packages? #131

Open dHARIZ-25 opened 2 months ago

dHARIZ-25 commented 2 months ago

Hello, We are currently using Hawkbit for our machine updates with RAUC packages. We think of migrating to goosebit and use it in a production environment but from our first staging trials we noticed that it only supports SWUpdates packages. Is it possible to provide another format for updates?

b-rowan commented 2 months ago

I think this should be possible, looking at the RAUC docs and considering we implement the hawkbit DDI API for the most part, it seems like they should be mostly compatible.

The main things to do here will be:

jameshilliard commented 2 months ago

Maybe look at what's needed to adapt swdesc.py to work with rauc.

b-rowan commented 2 months ago

Looks like the images are a squashfs format, we could use something like this - https://github.com/matteomattei/PySquashfsImage

Reference for image types is here - https://rauc.readthedocs.io/en/latest/reference.html#sec-ref-formats

Other than that, it will just be a matter of identifying files as RAUC or SWU format, the we need to look at what information we actually want out of the RAUC manifest.

b-rowan commented 2 months ago

Regarding parsing the manifest file, here's the spec for that, seems like TOML - https://rauc.readthedocs.io/en/latest/reference.html#sec-ref-manifest