Conversation
Extract missing gatttool which is needed by the Mi Flora component from the edge package.. This is a temporary fix until Alpine 3.7 is released.
Hi @sharukins, It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that testet?
homeassistant/base/Dockerfile
Outdated
## Install gatttool from edge (can be removed with release of Alpine 3.7) | ||
RUN mkdir -p bluez-deprecated \ | ||
&& cd bluez-deprecated \ | ||
&& curl -o bluez-deprecated-5.47-r3.apk http://dl-3.alpinelinux.org/alpine/edge/main/armhf/bluez-deprecated-5.47-r3.apk \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need write that for all arch. You can use $BUILD_ARCH
they include (amd64, aarch64, armhf, i386)
I didn't test it with home assistant, but bluez-deprecated does definitely contain gatttool and I did unpack it using tar from the apk. Therefore I'm pretty sure this works. |
Not quite elegant, but should do the job.
homeassistant/base/Dockerfile
Outdated
rm -fr bluez-deprecated; \ | ||
else cd ../; \ | ||
rm- fr bluez-deprecated; \ | ||
exit 0; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can handle that cleaner like:
&& if ...; then APK_ARCH=...; \
&& curl -so ... http://.../$APK_ARCH/....
This sould be more clean than the version before. I check $APK_ARCH again just in case. not sure if this is really necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work 👍 we can do it very simple and only add the correct arch detection with you first code
homeassistant/base/Dockerfile
Outdated
elif [ "$BUILD_ARCH" = "armhf" ]; then APK_ARCH = "armhf"; \ | ||
elif [ "$BUILD_ARCH" = "aarch64" ]; then APK_ARCH = "aarch64"; \ | ||
else exit 0; \ | ||
&& if [ -z "$APK_ARCH"]; then cd ../; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That will be set, this is not needed
If you finish it soon we can add it into 0.56 |
Extract missing gatttool which is needed by the Mi Flora component from the edge package.. This is a temporary fix until Alpine 3.7 is released.