balena-os / leviathan

A distributed hardware testing framework
https://balena-os.github.io/leviathan
Apache License 2.0
22 stars 6 forks source link

balenaOS in container worker? #516

Open rcooke-warwick opened 2 years ago

rcooke-warwick commented 2 years ago

@klutchell is it worth us making a balenaOS in a container worker: https://github.com/balena-os/balenaos-in-container

It feels like this may be useful? (Spin up virtual device, run tests like the cloud test suite on it). I know there is overlap with the qemu worker though so not sure if this would be worth doing or not

klutchell commented 2 years ago

I think this is definitely worth it, and less friction than a QEMU worker. Both should exist IMO, and IIRC Alex M specifically mentioned testing basic interfaces against this.

rcooke-warwick commented 2 years ago

@klutchell I'll get onto it, quite keen to get this up and running - do you know if the jenkins yocto jobs create a draft base image that can be used with this? In the repo I linked, they are pulling from here: https://hub.docker.com/r/resin/resinos/tags, which only contains released versions as far as I can tell

klutchell commented 2 years ago

do you know if the jenkins yocto jobs create a draft base image that can be used with this?

Yeah, the Jenkins jobs attach a .docker extension in addition to the images. \https://jenkins.product-os.io/view/Yocto/job/yocto-raspberrypi3/1065/

It's in the format of a docker save, so just need to download it and docker load balena-image.docker.

jakogut commented 2 years ago

I completely agree. One of the benefits of running containerized is that you don't need to dedicate memory to it, it shares memory with the host system. There's also less time spent with things like booting.