Files
addons/deconz/Dockerfile
Manuel Pietschmann 95c5b403e0 New deconz.dresden-elektronik.de subdomain (#826)
Due a new website on dresden-elektronik.de, the old paths might not work for some time.
The redirection of links should be active very soon.

This PR uses the deconz. subdomain to fix the 404, note https version will follow soon.
2019-11-17 16:27:22 +01:00

61 lines
1.7 KiB
Docker

ARG BUILD_FROM
FROM $BUILD_FROM
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Install deCONZ dependencies
ARG BUILD_ARCH
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
udev \
iproute2 \
iputils-ping \
kmod \
libcap2-bin \
libqt5core5a \
libqt5gui5 \
libqt5network5 \
libqt5serialport5 \
libqt5sql5 \
libqt5websockets5 \
libqt5widgets5 \
lsof \
netcat \
sqlite3 \
tigervnc-common \
tigervnc-standalone-server \
wget \
wmii \
xfonts-base \
xfonts-scalable \
&& rm -rf /var/lib/apt/lists/* \
&& if [ "${BUILD_ARCH}" = "armhf" ]; \
then \
curl -q -L -o /wiringpi.deb https://project-downloads.drogon.net/wiringpi-latest.deb \
&& dpkg -i /wiringpi.deb \
&& rm -rf /wiringpi.deb; \
fi
# Install deCONZ
ARG DECONZ_VERSION
RUN if [ "${BUILD_ARCH}" = "armhf" ]; \
then \
curl -q -L -o /deconz.deb http://deconz.dresden-elektronik.de/raspbian/beta/deconz-${DECONZ_VERSION}-qt5.deb; \
elif [ "${BUILD_ARCH}" = "aarch64" ]; \
then \
curl -q -L -o /deconz.deb http://deconz.dresden-elektronik.de/raspbian/alpha/deconz_${DECONZ_VERSION}-debian-stretch-beta_arm64.deb; \
else \
curl -q -L -o /deconz.deb http://deconz.dresden-elektronik.de/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/
CMD ["/run.sh"]