Skip to content

BLE Docker

You can run the Edge Xrt BLE Device Service in a docker container.

The following examples use the iotechsys/xrt:2.1 docker image.

To run the BLE Device Service, you must have bluez and dbus running on the host. The container must also be run with the following options:

  • --security-opt apparmour=unconfined
  • -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket

Run Edge Xrt with BLE

In the following example xrt-ble provides the name of the running container, provides the location of the config, state and profiles folders. [time_in_seconds] can optionally define the time for which Edge Xrt is to run in seconds:

docker run --rm --name xrt-ble -v <deployment_directory>/deployment:/opt/iotech/xrt/2.1/deployment \
--security-opt apparmour=unconfined \
-v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket \
iotechsys/xrt:2.1 [time_in_seconds]