Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create custom Docker image for Shippable CI with Bluetooth support enabled #71

Open
WayneKeenan opened this issue Jun 18, 2020 · 3 comments

Comments

@WayneKeenan
Copy link
Contributor

WayneKeenan commented Jun 18, 2020

The standard Shippable linux kernels used for running the CI jobs do not have bluetooth support enabled.
Therefore a btvirt (virtual bluetooth device) can not be created as the BT socket type is not understood by the kernel.

The idea to use btvirt, and some of the issues faced when using Travis comes from: ukBaz/python-bluezero#182

Shippable allows custom Docker containers: http://docs.shippable.com/ci/tutorial/build-custom-ci-image/

@WayneKeenan
Copy link
Contributor Author

I think I may have been too optimistic and neglected to recall that Docker containers rely on the underly host's kernel... this maybe a dead end.

@ukBaz
Copy link

ukBaz commented Jun 18, 2020

When I looked on Travis-CI I was trying to get dbus, Bluez (bluetooth) >5.43 with virtual host controller interface (vhci)

OS dbus bluetoothd vhci Python with System Packages
Trusty yes 4.101 yes 3.4
Xenial yes 5.37 No 3.5
Bionic yes None No 3.6

Enabling of vhci seems to be the key item for btvirt

Is that still going to be the problem with the host's kernel?

@vChavezB
Copy link

vChavezB commented Jul 24, 2024

Unfortunately the linux host requires to be built with CONFIG_BT=y. Then the host needs to give access to DBUS to the container.

This means that you need to host your own runners (Gitlab, Github, AWS,etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants