Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions generic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUN apk add --no-cache \
&& pip3 install --no-cache-dir -r homeassistant/requirements_all.txt -c homeassistant/homeassistant/package_constraints.txt \
&& pip3 install --no-cache-dir ./homeassistant \
&& apk del .build-dependencies \
&& cp -f homeassistant/requirements_all.txt /root/ \
&& rm -r homeassistant

# Run Home Assistant
Expand Down
5 changes: 3 additions & 2 deletions machine/raspberrypi
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ ENV LD_LIBRARY_PATH=/opt/vc/lib:${LD_LIBRARY_PATH}
##
# Install DHT
RUN apk add --no-cache --virtual .build-dependencies \
gcc libc-dev git \
&& git clone --depth 1 -b 1.3.4 https://github.com/adafruit/Adafruit_Python_DHT /usr/src/dht \
gcc libc-dev git raspberrypi-dev \
&& export DHT_VERSION="$(cat /root/requirements_all.txt | sed -n 's|.*Adafruit-DHT==\([0-9\.]*\).*|\1|p')" \
&& git clone --depth 1 -b ${DHT_VERSION} https://github.com/adafruit/Adafruit_Python_DHT /usr/src/dht \
&& cd /usr/src/dht \
&& sed -i 's/^pi_version\ =\ None/pi_version\ =\ 1/' setup.py \
&& sed -i 's/^platform\ =\ platform_detect.UNKNOWN/platform\ =\ platform_detect.RASPBERRY_PI/' setup.py \
Expand Down
5 changes: 3 additions & 2 deletions machine/raspberrypi2
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ ENV LD_LIBRARY_PATH=/opt/vc/lib:${LD_LIBRARY_PATH}
##
# Install DHT
RUN apk add --no-cache --virtual .build-dependencies \
gcc libc-dev git \
&& git clone --depth 1 -b 1.3.4 https://github.com/adafruit/Adafruit_Python_DHT /usr/src/dht \
gcc libc-dev git raspberrypi-dev \
&& export DHT_VERSION="$(cat /root/requirements_all.txt | sed -n 's|.*Adafruit-DHT==\([0-9\.]*\).*|\1|p')" \
&& git clone --depth 1 -b ${DHT_VERSION} https://github.com/adafruit/Adafruit_Python_DHT /usr/src/dht \
&& cd /usr/src/dht \
&& sed -i 's/^pi_version\ =\ None/pi_version\ =\ 2/' setup.py \
&& sed -i 's/^platform\ =\ platform_detect.UNKNOWN/platform\ =\ platform_detect.RASPBERRY_PI/' setup.py \
Expand Down
5 changes: 3 additions & 2 deletions machine/raspberrypi3
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ ENV LD_LIBRARY_PATH=/opt/vc/lib:${LD_LIBRARY_PATH}
##
# Install DHT
RUN apk add --no-cache --virtual .build-dependencies \
gcc libc-dev git \
&& git clone --depth 1 -b 1.3.4 https://github.com/adafruit/Adafruit_Python_DHT /usr/src/dht \
gcc libc-dev git raspberrypi-dev \
&& export DHT_VERSION="$(cat /root/requirements_all.txt | sed -n 's|.*Adafruit-DHT==\([0-9\.]*\).*|\1|p')" \
&& git clone --depth 1 -b ${DHT_VERSION} https://github.com/adafruit/Adafruit_Python_DHT /usr/src/dht \
&& cd /usr/src/dht \
&& sed -i 's/^pi_version\ =\ None/pi_version\ =\ 3/' setup.py \
&& sed -i 's/^platform\ =\ platform_detect.UNKNOWN/platform\ =\ platform_detect.RASPBERRY_PI/' setup.py \
Expand Down
3 changes: 2 additions & 1 deletion machine/raspberrypi3-64
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ ENV LD_LIBRARY_PATH=/opt/vc/lib:${LD_LIBRARY_PATH}
# Install DHT
RUN apk add --no-cache --virtual .build-dependencies \
gcc libc-dev git raspberrypi-dev \
&& git clone --depth 1 -b 1.3.4 https://github.com/adafruit/Adafruit_Python_DHT /usr/src/dht \
&& export DHT_VERSION="$(cat /root/requirements_all.txt | sed -n 's|.*Adafruit-DHT==\([0-9\.]*\).*|\1|p')" \
&& git clone --depth 1 -b ${DHT_VERSION} https://github.com/adafruit/Adafruit_Python_DHT /usr/src/dht \
&& cd /usr/src/dht \
&& sed -i 's/^pi_version\ =\ None/pi_version\ =\ 3/' setup.py \
&& sed -i 's/^platform\ =\ platform_detect.UNKNOWN/platform\ =\ platform_detect.RASPBERRY_PI/' setup.py \
Expand Down