cleanup / restyle generic

This commit is contained in:
Pascal Vizeli 2017-10-21 11:22:51 +02:00 committed by GitHub
parent 3253e9842d
commit 2fab8a0624

View file

@ -4,34 +4,30 @@ FROM $BUILD_FROM
## Install Home Assistant ## Install Home Assistant
ARG BUILD_VERSION ARG BUILD_VERSION
RUN apk add --no-cache \ RUN apk add --no-cache \
bluez-libs eudev-libs libxslt libxml2 \
apk add --no-cache --virtual .build-dependencies \
gcc g++ python3-dev musl-dev cmake make git linux-headers \ gcc g++ python3-dev musl-dev cmake make git linux-headers \
bluez-dev bluez-libs \ bluez-dev libffi-dev libressl-dev glib-dev eudev-dev \
libffi-dev libressl-dev glib-dev \ libxml2-dev libxslt-dev libpng-dev libjpeg-turbo-dev tiff-dev \
eudev-dev eudev-libs \ autoconf automake \
libxslt-dev libxslt libxml2-dev libxml2 \
libpng-dev libjpeg-turbo-dev tiff-dev \
&& git clone --depth 1 --branch $BUILD_VERSION https://github.com/home-assistant/home-assistant homeassistant \ && git clone --depth 1 --branch $BUILD_VERSION https://github.com/home-assistant/home-assistant homeassistant \
&& sed -i "s/# DTLSSocket/DTLSSocket/g" homeassistant/requirements_all.txt \ && sed -i "s|# DTLSSocket|DTLSSocket|g" homeassistant/requirements_all.txt \
&& sed -i "s|# https://github.com/chrysn/aiocoap|https://github.com/chrysn/aiocoap|g" homeassistant/requirements_all.txt \ && sed -i "s|# https://github.com/chrysn/aiocoap|https://github.com/chrysn/aiocoap|g" homeassistant/requirements_all.txt \
&& sed -i "s/# pybluez/pybluez/g" homeassistant/requirements_all.txt \ && sed -i "s|# pybluez|pybluez|g" homeassistant/requirements_all.txt \
&& sed -i "s/# bluepy/bluepy/g" homeassistant/requirements_all.txt \ && sed -i "s|# bluepy|bluepy|g" homeassistant/requirements_all.txt \
&& sed -i "s/# beacontools/beacontools/g" homeassistant/requirements_all.txt \ && sed -i "s|# beacontools|beacontools|g" homeassistant/requirements_all.txt \
&& sed -i "s/# RPi.GPIO/RPi.GPIO/g" homeassistant/requirements_all.txt \ && sed -i "s|# RPi.GPIO|RPi.GPIO|g" homeassistant/requirements_all.txt \
&& sed -i "s/# raspihats/raspihats/g" homeassistant/requirements_all.txt \ && sed -i "s|# raspihats|raspihats|g" homeassistant/requirements_all.txt \
&& sed -i "s/# rpi-rf/rpi-rf/g" homeassistant/requirements_all.txt \ && sed -i "s|# rpi-rf|rpi-rf|g" homeassistant/requirements_all.txt \
&& sed -i "s/# blinkt/blinkt/g" homeassistant/requirements_all.txt \ && sed -i "s|# blinkt|blinkt|g" homeassistant/requirements_all.txt \
&& sed -i "s/# fritzconnection/fritzconnection/g" homeassistant/requirements_all.txt \ && sed -i "s|# fritzconnection|fritzconnection|g" homeassistant/requirements_all.txt \
&& sed -i "s/# pyuserinput/pyuserinput/g" homeassistant/requirements_all.txt \ && sed -i "s|# pyuserinput|pyuserinput|g" homeassistant/requirements_all.txt \
&& sed -i "s/# evdev/evdev/g" homeassistant/requirements_all.txt \ && sed -i "s|# evdev|evdev|g" homeassistant/requirements_all.txt \
&& sed -i "s/# smbus-cffi/smbus-cffi/g" homeassistant/requirements_all.txt \ && sed -i "s|# smbus-cffi|smbus-cffi|g" homeassistant/requirements_all.txt \
&& sed -i "s/# i2csense/i2csense/g" homeassistant/requirements_all.txt \ && sed -i "s|# i2csense|i2csense|g" homeassistant/requirements_all.txt \
&& pip3 install --no-cache-dir -r homeassistant/requirements_all.txt \ && pip3 install --no-cache-dir -r homeassistant/requirements_all.txt \
&& pip3 install --no-cache-dir ./homeassistant \ && pip3 install --no-cache-dir ./homeassistant \
&& apk del \ && apk del .build-dependencies
gcc g++ python3-dev musl-dev cmake make git linux-headers \
bluez-dev libffi-dev \
eudev-dev libxslt-dev libxml2-dev libressl-dev glib-dev \
libpng-dev libjpeg-turbo-dev tiff-dev \
&& rm -r homeassistant && rm -r homeassistant
# Install and update certificates # Install and update certificates