Install gosu using apt and formatting improvements (#180)
Signed-off-by: Wouter Born <eclipse@maindrain.net>pull/181/head
parent
d9f47eb260
commit
9a81b757a8
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:amd64-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" OPENHAB_VERSION="1.8.3"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" \
|
||||
OPENHAB_VERSION="1.8.3"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -65,10 +68,10 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
sed -i 's/^crypto.policy=unlimited/crypto.policy=limited/' "$JAVA_HOME/jre/lib/security/java.security"
|
||||
|
||||
# Install openhab
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
cp -a ${APPDIR}/configurations ${APPDIR}/configurations.dist && \
|
||||
cp -a "${APPDIR}/configurations" "${APPDIR}/configurations.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:amd64-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" OPENHAB_VERSION="1.8.3"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" \
|
||||
OPENHAB_VERSION="1.8.3"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,33 +65,18 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
cp -a ${APPDIR}/configurations ${APPDIR}/configurations.dist && \
|
||||
cp -a "${APPDIR}/configurations" "${APPDIR}/configurations.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:arm64-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" OPENHAB_VERSION="1.8.3"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" \
|
||||
OPENHAB_VERSION="1.8.3"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -65,10 +68,10 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
sed -i 's/^crypto.policy=unlimited/crypto.policy=limited/' "$JAVA_HOME/jre/lib/security/java.security"
|
||||
|
||||
# Install openhab
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
cp -a ${APPDIR}/configurations ${APPDIR}/configurations.dist && \
|
||||
cp -a "${APPDIR}/configurations" "${APPDIR}/configurations.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:arm64-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" OPENHAB_VERSION="1.8.3"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" \
|
||||
OPENHAB_VERSION="1.8.3"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,27 +65,12 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
RUN dpkg --add-architecture armhf && \
|
||||
apt-get update && \
|
||||
|
@ -89,10 +78,10 @@ RUN dpkg --add-architecture armhf && \
|
|||
libc6:armhf
|
||||
|
||||
# Install openhab
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
cp -a ${APPDIR}/configurations ${APPDIR}/configurations.dist && \
|
||||
cp -a "${APPDIR}/configurations" "${APPDIR}/configurations.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:armhf-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" OPENHAB_VERSION="1.8.3"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" \
|
||||
OPENHAB_VERSION="1.8.3"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -65,10 +68,10 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
sed -i 's/^crypto.policy=unlimited/crypto.policy=limited/' "$JAVA_HOME/jre/lib/security/java.security"
|
||||
|
||||
# Install openhab
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
cp -a ${APPDIR}/configurations ${APPDIR}/configurations.dist && \
|
||||
cp -a "${APPDIR}/configurations" "${APPDIR}/configurations.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:armhf-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" OPENHAB_VERSION="1.8.3"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" \
|
||||
OPENHAB_VERSION="1.8.3"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,33 +65,18 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
cp -a ${APPDIR}/configurations ${APPDIR}/configurations.dist && \
|
||||
cp -a "${APPDIR}/configurations" "${APPDIR}/configurations.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:i386-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" OPENHAB_VERSION="1.8.3"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" \
|
||||
OPENHAB_VERSION="1.8.3"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -65,10 +68,10 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
sed -i 's/^crypto.policy=unlimited/crypto.policy=limited/' "$JAVA_HOME/jre/lib/security/java.security"
|
||||
|
||||
# Install openhab
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
cp -a ${APPDIR}/configurations ${APPDIR}/configurations.dist && \
|
||||
cp -a "${APPDIR}/configurations" "${APPDIR}/configurations.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:i386-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" OPENHAB_VERSION="1.8.3"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/artifact/download/openhab/bin/distribution-1.8.3-runtime.zip" \
|
||||
OPENHAB_VERSION="1.8.3"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,33 +65,18 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
cp -a ${APPDIR}/configurations ${APPDIR}/configurations.dist && \
|
||||
cp -a "${APPDIR}/configurations" "${APPDIR}/configurations.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:amd64-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" OPENHAB_VERSION="2.0.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" \
|
||||
OPENHAB_VERSION="2.0.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:amd64-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" OPENHAB_VERSION="2.0.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" \
|
||||
OPENHAB_VERSION="2.0.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:arm64-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" OPENHAB_VERSION="2.0.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" \
|
||||
OPENHAB_VERSION="2.0.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:arm64-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" OPENHAB_VERSION="2.0.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" \
|
||||
OPENHAB_VERSION="2.0.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,27 +65,12 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
RUN dpkg --add-architecture armhf && \
|
||||
apt-get update && \
|
||||
|
@ -90,13 +79,13 @@ RUN dpkg --add-architecture armhf && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:armhf-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" OPENHAB_VERSION="2.0.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" \
|
||||
OPENHAB_VERSION="2.0.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:armhf-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" OPENHAB_VERSION="2.0.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" \
|
||||
OPENHAB_VERSION="2.0.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:i386-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" OPENHAB_VERSION="2.0.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" \
|
||||
OPENHAB_VERSION="2.0.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:i386-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" OPENHAB_VERSION="2.0.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.0.0%2Fopenhab-2.0.0.zip" \
|
||||
OPENHAB_VERSION="2.0.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:amd64-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" OPENHAB_VERSION="2.1.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" \
|
||||
OPENHAB_VERSION="2.1.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:amd64-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" OPENHAB_VERSION="2.1.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" \
|
||||
OPENHAB_VERSION="2.1.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:arm64-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" OPENHAB_VERSION="2.1.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" \
|
||||
OPENHAB_VERSION="2.1.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:arm64-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" OPENHAB_VERSION="2.1.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" \
|
||||
OPENHAB_VERSION="2.1.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,27 +65,12 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
RUN dpkg --add-architecture armhf && \
|
||||
apt-get update && \
|
||||
|
@ -90,13 +79,13 @@ RUN dpkg --add-architecture armhf && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:armhf-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" OPENHAB_VERSION="2.1.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" \
|
||||
OPENHAB_VERSION="2.1.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:armhf-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" OPENHAB_VERSION="2.1.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" \
|
||||
OPENHAB_VERSION="2.1.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:i386-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" OPENHAB_VERSION="2.1.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" \
|
||||
OPENHAB_VERSION="2.1.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:i386-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" OPENHAB_VERSION="2.1.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.1.0%2Fopenhab-2.1.0.zip" \
|
||||
OPENHAB_VERSION="2.1.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:amd64-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" OPENHAB_VERSION="2.2.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" \
|
||||
OPENHAB_VERSION="2.2.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:amd64-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" OPENHAB_VERSION="2.2.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" \
|
||||
OPENHAB_VERSION="2.2.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:arm64-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" OPENHAB_VERSION="2.2.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" \
|
||||
OPENHAB_VERSION="2.2.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:arm64-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" OPENHAB_VERSION="2.2.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" \
|
||||
OPENHAB_VERSION="2.2.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,27 +65,12 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
RUN dpkg --add-architecture armhf && \
|
||||
apt-get update && \
|
||||
|
@ -90,13 +79,13 @@ RUN dpkg --add-architecture armhf && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:armhf-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" OPENHAB_VERSION="2.2.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" \
|
||||
OPENHAB_VERSION="2.2.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:armhf-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" OPENHAB_VERSION="2.2.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" \
|
||||
OPENHAB_VERSION="2.2.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:i386-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" OPENHAB_VERSION="2.2.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" \
|
||||
OPENHAB_VERSION="2.2.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:i386-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" OPENHAB_VERSION="2.2.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.2.0%2Fopenhab-2.2.0.zip" \
|
||||
OPENHAB_VERSION="2.2.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:amd64-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" OPENHAB_VERSION="2.3.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" \
|
||||
OPENHAB_VERSION="2.3.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:amd64-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" OPENHAB_VERSION="2.3.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" \
|
||||
OPENHAB_VERSION="2.3.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:arm64-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" OPENHAB_VERSION="2.3.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" \
|
||||
OPENHAB_VERSION="2.3.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:arm64-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" OPENHAB_VERSION="2.3.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" \
|
||||
OPENHAB_VERSION="2.3.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,27 +65,12 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
RUN dpkg --add-architecture armhf && \
|
||||
apt-get update && \
|
||||
|
@ -90,13 +79,13 @@ RUN dpkg --add-architecture armhf && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:armhf-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" OPENHAB_VERSION="2.3.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" \
|
||||
OPENHAB_VERSION="2.3.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:armhf-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" OPENHAB_VERSION="2.3.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" \
|
||||
OPENHAB_VERSION="2.3.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:i386-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" OPENHAB_VERSION="2.3.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" \
|
||||
OPENHAB_VERSION="2.3.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:i386-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" OPENHAB_VERSION="2.3.0"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://bintray.com/openhab/mvn/download_file?file_path=org%2Fopenhab%2Fdistro%2Fopenhab%2F2.3.0%2Fopenhab-2.3.0.zip" \
|
||||
OPENHAB_VERSION="2.3.0"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:amd64-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" OPENHAB_VERSION="2.4.0-snapshot"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" \
|
||||
OPENHAB_VERSION="2.4.0-snapshot"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:amd64-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" OPENHAB_VERSION="2.4.0-snapshot"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" \
|
||||
OPENHAB_VERSION="2.4.0-snapshot"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:arm64-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" OPENHAB_VERSION="2.4.0-snapshot"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" \
|
||||
OPENHAB_VERSION="2.4.0-snapshot"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:arm64-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" OPENHAB_VERSION="2.4.0-snapshot"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" \
|
||||
OPENHAB_VERSION="2.4.0-snapshot"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,27 +65,12 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
RUN dpkg --add-architecture armhf && \
|
||||
apt-get update && \
|
||||
|
@ -90,13 +79,13 @@ RUN dpkg --add-architecture armhf && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:armhf-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" OPENHAB_VERSION="2.4.0-snapshot"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" \
|
||||
OPENHAB_VERSION="2.4.0-snapshot"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:armhf-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" OPENHAB_VERSION="2.4.0-snapshot"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_aarch32hf.tar.gz" \
|
||||
OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" \
|
||||
OPENHAB_VERSION="2.4.0-snapshot"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/alpine:i386-v3.7
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" OPENHAB_VERSION="2.4.0-snapshot"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" \
|
||||
OPENHAB_VERSION="2.4.0-snapshot"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -66,13 +69,13 @@ RUN rm -r "$JAVA_HOME/jre/lib/security/policy/unlimited" && \
|
|||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
FROM multiarch/debian-debootstrap:i386-stretch
|
||||
|
||||
# Set download urls
|
||||
ENV JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" OPENHAB_VERSION="2.4.0-snapshot"
|
||||
ENV \
|
||||
JAVA_URL="https://www.azul.com/downloads/zulu/zdk-8-ga-linux_x64.tar.gz" \
|
||||
OPENHAB_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab/target/openhab-2.4.0-SNAPSHOT.zip" \
|
||||
OPENHAB_VERSION="2.4.0-snapshot"
|
||||
|
||||
# Set variables and locales
|
||||
ENV \
|
||||
|
@ -35,7 +38,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -49,6 +52,7 @@ RUN apt-get update && \
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -61,37 +65,22 @@ RUN apt-get update && \
|
|||
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
# Expose volume with configuration and userdata dir
|
||||
|
|
59
update.sh
59
update.sh
|
@ -77,9 +77,9 @@ print_baseimage() {
|
|||
FROM multiarch/$base_image
|
||||
|
||||
# Set download urls
|
||||
ENV \
|
||||
JAVA_URL="$java_url" \
|
||||
OPENHAB_URL="$openhab_url" \
|
||||
ENV \\
|
||||
JAVA_URL="$java_url" \\
|
||||
OPENHAB_URL="$openhab_url" \\
|
||||
OPENHAB_VERSION="$version"
|
||||
|
||||
EOI
|
||||
|
@ -112,7 +112,7 @@ print_basemetadata() {
|
|||
org.label-schema.vendor="openHAB Foundation e.V." \
|
||||
org.label-schema.version=$VERSION \
|
||||
org.label-schema.description="An open source, technology agnostic home automation platform" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.url="https://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git" \
|
||||
|
@ -132,6 +132,7 @@ print_basepackages() {
|
|||
dirmngr \
|
||||
fontconfig \
|
||||
gnupg \
|
||||
gosu \
|
||||
libpcap-dev \
|
||||
locales \
|
||||
locales-all \
|
||||
|
@ -201,38 +202,17 @@ print_lib32_support_arm64() {
|
|||
EOI
|
||||
}
|
||||
|
||||
# Install gosu
|
||||
print_gosu() {
|
||||
cat >> $1 <<-'EOI'
|
||||
# Install gosu
|
||||
ENV GOSU_VERSION 1.10
|
||||
RUN set -x \
|
||||
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
|
||||
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
|
||||
&& export GNUPGHOME \
|
||||
&& GNUPGHOME="$(mktemp -d)" \
|
||||
&& GPG_KEY="B42F6819007F00F88E364FD4036A9C25BF357DD4" \
|
||||
&& KEYSERVERS=$(shuf -e $(echo "ha.pool.sks-keyservers.net\nhkp://p80.pool.sks-keyservers.net:80\nkeyserver.ubuntu.com\nhkp://keyserver.ubuntu.com:80\npgp.mit.edu\nhkp://pgp.mit.edu:80")) \
|
||||
&& for i in $(seq 1 3); do for keyserver in $KEYSERVERS; do gpg --verbose --keyserver $keyserver --recv-keys $GPG_KEY && break; done; if [ $? -eq 0 ]; then break; fi done \
|
||||
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
|
||||
&& rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc \
|
||||
&& chmod +x /usr/local/bin/gosu
|
||||
|
||||
EOI
|
||||
}
|
||||
|
||||
# Install java for debian
|
||||
print_java() {
|
||||
cat >> $1 <<-'EOI'
|
||||
# Install java
|
||||
ENV JAVA_HOME='/usr/lib/java-8'
|
||||
RUN wget -nv -O /tmp/java.tar.gz ${JAVA_URL} && \
|
||||
mkdir ${JAVA_HOME} && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C ${JAVA_HOME} && \
|
||||
RUN wget -nv -O /tmp/java.tar.gz "${JAVA_URL}" && \
|
||||
mkdir "${JAVA_HOME}" && \
|
||||
tar --exclude='demo' --exclude='sample' --exclude='src.zip' -xvf /tmp/java.tar.gz --strip-components=1 -C "${JAVA_HOME}" && \
|
||||
rm /tmp/java.tar.gz && \
|
||||
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/bin/java 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac ${JAVA_HOME}/bin/javac 50
|
||||
update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 50 && \
|
||||
update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 50
|
||||
|
||||
EOI
|
||||
}
|
||||
|
@ -253,13 +233,13 @@ print_openhab_install() {
|
|||
cat >> $1 <<-'EOI'
|
||||
# Install openhab
|
||||
# Set permissions for openhab. Export TERM variable. See issue #30 for details!
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
mkdir -p ${APPDIR}/userdata/logs && \
|
||||
touch ${APPDIR}/userdata/logs/openhab.log && \
|
||||
cp -a ${APPDIR}/userdata ${APPDIR}/userdata.dist && \
|
||||
cp -a ${APPDIR}/conf ${APPDIR}/conf.dist && \
|
||||
mkdir -p "${APPDIR}/userdata/logs" && \
|
||||
touch "${APPDIR}/userdata/logs/openhab.log" && \
|
||||
cp -a "${APPDIR}/userdata" "${APPDIR}/userdata.dist" && \
|
||||
cp -a "${APPDIR}/conf" "${APPDIR}/conf.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
EOI
|
||||
|
@ -269,10 +249,10 @@ EOI
|
|||
print_openhab_install_old() {
|
||||
cat >> $1 <<-'EOI'
|
||||
# Install openhab
|
||||
RUN wget -nv -O /tmp/openhab.zip ${OPENHAB_URL} && \
|
||||
unzip -q /tmp/openhab.zip -d ${APPDIR} && \
|
||||
RUN wget -nv -O /tmp/openhab.zip "${OPENHAB_URL}" && \
|
||||
unzip -q /tmp/openhab.zip -d "${APPDIR}" && \
|
||||
rm /tmp/openhab.zip && \
|
||||
cp -a ${APPDIR}/configurations ${APPDIR}/configurations.dist && \
|
||||
cp -a "${APPDIR}/configurations" "${APPDIR}/configurations.dist" && \
|
||||
echo "export TERM=dumb" | tee -a ~/.bashrc
|
||||
|
||||
EOI
|
||||
|
@ -376,7 +356,6 @@ do
|
|||
else
|
||||
print_basepackages $file;
|
||||
print_java $file;
|
||||
print_gosu $file;
|
||||
fi
|
||||
if [ "$arch" == "arm64" ] && [ "$base" == "debian" ]; then
|
||||
print_lib32_support_arm64 $file;
|
||||
|
|
Loading…
Reference in New Issue