Access host devices (USB) from runner step

Hi, we're considering to use Bitbucket Runners in order to perform hardware-in-the-loop CI testing. We noticed that the steps are run via Docker-in-Docker inside the runner container. So just starting the runner container as privileged with /dev/bus/usb mounted into it doesn't seem sufficient in order to access USB peripherals. Is there some way to access host (USB) peripherals from a pipeline step running on a self-hosted runner?

Best regards,
Sven

4 comments

Comment

Log in or Sign up to comment
James Szklarz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 9, 2021

Hi,

This is not currently possible as the dind containers within the runner container are not run with any device configurations.

We are planning on implementing this feature soon, allowing you to specify host devices against the runner steps in your pipelines yaml so you'll have access to them from your builds.

Regards,
James

Charalampos Eleftheriadis December 28, 2021

Hi!

Are there any plans to support this functionallity in the near future?

Thanks!

Jarek Piotrowiak January 10, 2022

How is it going with this feature? I could really use it.

Charalampos Eleftheriadis February 5, 2022

Bump up! Any answers about this please?

TAGS
AUG Leaders

Atlassian Community Events