mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 21:24:20 +01:00
* Update config.json * Create ledvance-otau-dl.sh * Update run.sh * Update Dockerfile * Update CHANGELOG.md * Update CHANGELOG.md * Update ledvance-otau-dl.sh Fix lint issues: https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt... https://www.shellcheck.net/wiki/SC2003 -- expr is antiquated. Consider rewr... * Update ledvance-otau-dl.sh Fix lint issue: https://www.shellcheck.net/wiki/SC2004 -- $/${} is unnecessary on arithmeti... * Update Dockerfile Adressing @pvizeli comment : The script have the correct permission of a+x? Add CMD to set a+x permission on ledvance-otau-dl.sh script * Update Dockerfile * Add exec permissions * revert oups bad multiple cmdlines in CMD[] * revert oups bad multiple cmdlines in CMD[] * dummy commit * Update Dockerfile remove dummy comment * Update ledvance-otau-dl.sh remove dummy comment * fix bug Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
64 lines
1.8 KiB
Docker
64 lines
1.8 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 \
|
|
iproute2 \
|
|
iputils-ping \
|
|
kmod \
|
|
libcap2-bin \
|
|
libqt5core5a \
|
|
libqt5gui5 \
|
|
libqt5network5 \
|
|
libqt5serialport5 \
|
|
libqt5sql5 \
|
|
libqt5websockets5 \
|
|
libqt5widgets5 \
|
|
lsof \
|
|
netcat \
|
|
nginx \
|
|
sqlite3 \
|
|
tigervnc-common \
|
|
tigervnc-standalone-server \
|
|
udev \
|
|
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/ika-otau-dl.sh /bin/
|
|
COPY data/ledvance-otau-dl.sh /bin/
|
|
COPY data/nginx.conf /etc/nginx/nginx.conf
|
|
COPY data/run.sh data/discovery.sh /
|
|
|
|
CMD ["/run.sh"]
|