I am working in the field of embedded software and I’d like to introduce hardware-in-the-loop tests. There are two things for which I could not find an answer:
- How do I get access to the hardware (e.g. ttyUSB-devices)?
Docker run command does have the
--device-Option (see https://stackoverflow.com/a/24231872/5495666 and https://docs.docker.com/engine/reference/commandline/run/#add-host-device-to-container---device). However, I did not find out, how to set such options on a container created using image_resource.
- How do I serialize tasks from different pipelines, so that only one task is run at a time?
Multiple tasks may use the same hardware, however, there is only exactly one instance of the hardware. Can I somehow create a worker, configure it to run tasks sequentially and enforce my tasks to only run on this worker?
Thank you for your thoughts on this.