mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
* Migrate deconz to ingress/discovery * update chmod * Add discovery * Fix lint * Fix typo * Bump versio 0.91.2 * Fix discovery * Cleanup config * Fix discovery * Fix url * Fix port * Fix script * Support new host config * Use new network feature * add notes * Fix shell * simplify v1 * Cleanup * Fix api port access * Remove waiting * Use more modern version * Fix lint * Add a note to ingress phoscon app * fix format * Fix ingress * Fix ingress * Fix output * Change flow * Fix wait port * Fix config * Add tiemout * Cleanup
50 lines
1.4 KiB
Docker
50 lines
1.4 KiB
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
# Install deCONZ dependencies
|
|
ARG BUILD_ARCH
|
|
RUN apt-get update \
|
|
&& apt-get install -y \
|
|
nginx \
|
|
curl \
|
|
kmod \
|
|
lsof \
|
|
tzdata \
|
|
netcat \
|
|
libcap2-bin \
|
|
libqt5core5a \
|
|
libqt5gui5 \
|
|
libqt5network5 \
|
|
libqt5serialport5 \
|
|
libqt5sql5 \
|
|
libqt5websockets5 \
|
|
libqt5widgets5 \
|
|
sqlite3 \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& if [ "${BUILD_ARCH}" = "armhf" ] || [ "${BUILD_ARCH}" = "aarch64" ]; \
|
|
then \
|
|
curl -q -L -o /wiringpi.deb https://unicorn.drogon.net/wiringpi-2.46-1.deb \
|
|
&& dpkg -i /wiringpi.deb \
|
|
&& rm -rf /wiringpi.deb; \
|
|
fi
|
|
|
|
# Install deCONZ
|
|
ARG DECONZ_VERSION
|
|
RUN if [ "${BUILD_ARCH}" = "armhf" ] || [ "${BUILD_ARCH}" = "aarch64" ]; \
|
|
then \
|
|
curl -q -L -o /deconz.deb https://www.dresden-elektronik.de/rpi/deconz/beta/deconz-${DECONZ_VERSION}-qt5.deb; \
|
|
else \
|
|
curl -q -L -o /deconz.deb https://www.dresden-elektronik.de/deconz/ubuntu/beta/deconz-${DECONZ_VERSION}-qt5.deb; \
|
|
fi \
|
|
&& dpkg -i /deconz.deb \
|
|
&& rm -f /deconz.deb \
|
|
&& chown root:root /usr/bin/deCONZ* \
|
|
&& sed -i 's/\/root/\/data/' /etc/passwd
|
|
|
|
COPY data/run.sh data/discovery.sh /
|
|
COPY data/ika-otau-dl.sh /bin/
|
|
COPY data/nginx.conf /etc/nginx/ingress.conf
|
|
|
|
CMD ["/run.sh"]
|