Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
Temporary fix for Mi Flora (#42)
Browse files Browse the repository at this point in the history
* Temporary fix for Mi Flora

We compile bluez with deprecated tools from source. This enables us to copy missing gatttool to /usr/bin.

* Update Dockerfile

* Update Dockerfile
  • Loading branch information
sharukins authored and pvizeli committed Oct 22, 2017
1 parent aebf8c3 commit f830dc8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions homeassistant/base/Dockerfile
Expand Up @@ -112,3 +112,26 @@ RUN apk add --no-cache \
&& pip3 install --no-cache-dir https://github.com/wayfair/pymssql/archive/v2.1.3.0.0.1.zip \
&& pip3 install --no-cache-dir cchardet uvloop aiodns \
&& apk del .build-dependencies

####
## Temporary Fix for Mi Flora. Remove on release of Alpine 3.7
RUN apk add --no-cache \
readline \
&& apk add --no-cache --virtual .build-dependencies \
gcc g++ make musl-dev consolekit dbus-dev libusb-compat-dev eudev-dev \
libical-dev readline-dev glib-dev linux-headers \
autoconf automake libtool \
&& mkdir -p bluez-deprecated \
&& cd bluez-deprecated \
&& curl -so bluez-5.44.tar.gz https://www.kernel.org/pub/linux/bluetooth/bluez-5.44.tar.gz \
&& tar -xzf bluez-5.44.tar.gz \
&& cd bluez-5.44 \
&& ./configure \
--enable-deprecated \
--disable-systemd \
--enable-library \
&& make \
&& mv attrib/gatttool /usr/bin/ \
&& cd ../../ \
&& rm -fr bluez-deprecated \
&& apk del .build-dependencies

0 comments on commit f830dc8

Please sign in to comment.