Hello,
I am kind of new to docker and and to self-hosted runners in bitbucket as well.
I am trying to access a local USB device via a self hosted pipeline runner on a local host PC.
It tried to add
-t -i --device=/dev/ttyUSB0:/dev/ttyUSB0
to the command to start the local runner on the host PC.
And I also tried to added the devices in the .yml file in bitbucket like:
image: ubuntu
devices:
- "/dev/ttyUSB0:/dev/ttyUSB0"
pipelines:
default:
- step:
name: Run unittests on local host
runs-on:
- 'self.hosted'
script:
- echo "This step will run on a self hosted runner.";
- ls /dev/
Unfortunately, I am not able to see the USB devices either way.
Is it possible to access or connect to the local USB devices?
If it is possible, how should I do it?