diff --git a/.VERSION b/.VERSION index 30cafe7..51be872 100644 --- a/.VERSION +++ b/.VERSION @@ -1 +1 @@ -v4.1.4beta +v4.2.0 diff --git a/README.md b/README.md index 5fbd39d..eb21684 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,8 @@ The following will give a short overview. To configure the ioBroker container on startup it is possible to set some environment variables. You do not have to declare every single variable when stting up your container. Variables you do not set will come up with their default value. +**Important: In v4.2.0 the ENVs "ADMINPORT" and "REDIS" were renamed/ reorganized. For Details see the following table!** + |env|default|description| |---|---|---| |AVAHI|false|Installs and activates avahi-daemon for supporting yahka-adapter, can be "true" or "false"| @@ -94,7 +96,7 @@ Note: It is absolutely recommended to use a mounted folder or persistent volume You can also mount a folder containing an existing ioBroker-installation (e.g. when moving an existing installation to docker). But watch for the used node version. If the existing installation runs with another major version of node you have do perform additional steps. For more Details see the "Important notice" on top. -Important: If the folder you mount to /opt/iobroker in your container is placed on a mounted device, partition or other storage, the mountpoint on your host should NOT have the "noexec" flag activated. Otherwise you may get problems executing ioBroker inside the container! +**Important: If the folder you mount to /opt/iobroker in your container is placed on a mounted device, partition or other storage, the mountpoint on your host should NOT have the "noexec" flag activated. Otherwise you may get problems executing ioBroker inside the container!** ### Permission fixer @@ -119,15 +121,20 @@ You will find the channel here: https://t.me/buanet_tutorials ### Support the project -The easiest way to support this project is to take a look into the [open issues](https://github.com/buanet/docker-iobroker/issues) and helping me answering questions, fixing bugs or adding new features. ;)
Another possible way could be to send me a small donation: +The easiest way to support this project is to leave me some likes/ stars on github and docker hub!
+If you want to give something back, feel free to take a look into the [open issues](https://github.com/buanet/docker-iobroker/issues) or the [ioBroker forum thread](http://forum.iobroker.net/viewtopic.php?f=17&t=5089) and helping me answering questions, fixing bugs or adding new features!
+And if you want to buy me a beer instead, you can do this here:
+Thank you! ## Changelog -### v4.1.4beta (2020-04-07) -* testing buster as base image -* optimizing installation of packages +### v4.2.0 (2020-04-14) +* v4.1.4beta (2020-04-07) + * switching base image to buster + * optimizing installation of packages defined by ENV "PACKAGES" * v4.1.3beta (2020-02-08) - * added new ENVs for "iobroker setup custom" + * renamed ENV for adminport (new "IOB_ADMINPORT)") + * added new ENVs for "iobroker setup custom" (replacing "REDIS") * enhancements in startupscript logging * v4.1.2beta (2020-02-02) * added feature for running userdefined scripts on startup diff --git a/aarch64/Dockerfile b/aarch64/Dockerfile index d2aa570..0c85450 100644 --- a/aarch64/Dockerfile +++ b/aarch64/Dockerfile @@ -1,6 +1,7 @@ FROM balenalib/aarch64-debian:buster + LABEL maintainer="Andre Germann" \ - url="" + url="https://buanet.de" ENV DEBIAN_FRONTEND noninteractive diff --git a/aarch64/scripts/iobroker_startup.sh b/aarch64/scripts/iobroker_startup.sh index 795aa6a..1e9b430 100644 --- a/aarch64/scripts/iobroker_startup.sh +++ b/aarch64/scripts/iobroker_startup.sh @@ -75,7 +75,7 @@ then echo "Installing additional packages is set by ENV." echo "The following packages will be installed:" $packages"..." echo $packages > /opt/scripts/.packages - bash /opt/scripts/setup_packages.sh > /opt/scripts/setup_packages.log 2>&1 + bash /opt/scripts/setup_packages.sh echo "Done." echo ' ' fi diff --git a/aarch64/scripts/setup_packages.sh b/aarch64/scripts/setup_packages.sh index 8dc6848..449900f 100644 --- a/aarch64/scripts/setup_packages.sh +++ b/aarch64/scripts/setup_packages.sh @@ -1,7 +1,12 @@ #!/bin/bash -apt-get update -apt-get install -y $(cat /opt/scripts/.packages) +apt-get -qq update + +packages=$(cat /opt/scripts/.packages) +for i in $packages; do + sudo apt-get -qq -y install $i +done + rm -rf /var/lib/apt/lists/* rm -f /opt/scripts/.packages diff --git a/amd64/Dockerfile b/amd64/Dockerfile index 0b84f1a..9f15b1d 100644 --- a/amd64/Dockerfile +++ b/amd64/Dockerfile @@ -1,7 +1,7 @@ FROM amd64/debian:buster LABEL maintainer="Andre Germann" \ - url="" + url="https://buanet.de" ENV DEBIAN_FRONTEND noninteractive diff --git a/amd64/scripts/iobroker_startup.sh b/amd64/scripts/iobroker_startup.sh index 8966c79..1e9b430 100644 --- a/amd64/scripts/iobroker_startup.sh +++ b/amd64/scripts/iobroker_startup.sh @@ -75,7 +75,7 @@ then echo "Installing additional packages is set by ENV." echo "The following packages will be installed:" $packages"..." echo $packages > /opt/scripts/.packages - bash /opt/scripts/setup_packages.sh #> /opt/scripts/setup_packages.log 2>&1 + bash /opt/scripts/setup_packages.sh echo "Done." echo ' ' fi diff --git a/amd64/scripts/setup_packages.sh b/amd64/scripts/setup_packages.sh index 555ed68..449900f 100644 --- a/amd64/scripts/setup_packages.sh +++ b/amd64/scripts/setup_packages.sh @@ -7,8 +7,6 @@ for i in $packages; do sudo apt-get -qq -y install $i done -# apt-get install -y $(cat /opt/scripts/.packages) - rm -rf /var/lib/apt/lists/* rm -f /opt/scripts/.packages diff --git a/armv7hf/Dockerfile b/armv7hf/Dockerfile index 686e593..54df7f9 100644 --- a/armv7hf/Dockerfile +++ b/armv7hf/Dockerfile @@ -1,7 +1,7 @@ FROM balenalib/armv7hf-debian:buster LABEL maintainer="Andre Germann" \ - url="" + url="https://buanet.de" ENV DEBIAN_FRONTEND noninteractive diff --git a/armv7hf/scripts/iobroker_startup.sh b/armv7hf/scripts/iobroker_startup.sh index 795aa6a..1e9b430 100644 --- a/armv7hf/scripts/iobroker_startup.sh +++ b/armv7hf/scripts/iobroker_startup.sh @@ -75,7 +75,7 @@ then echo "Installing additional packages is set by ENV." echo "The following packages will be installed:" $packages"..." echo $packages > /opt/scripts/.packages - bash /opt/scripts/setup_packages.sh > /opt/scripts/setup_packages.log 2>&1 + bash /opt/scripts/setup_packages.sh echo "Done." echo ' ' fi diff --git a/armv7hf/scripts/setup_packages.sh b/armv7hf/scripts/setup_packages.sh index 8dc6848..449900f 100644 --- a/armv7hf/scripts/setup_packages.sh +++ b/armv7hf/scripts/setup_packages.sh @@ -1,7 +1,12 @@ #!/bin/bash -apt-get update -apt-get install -y $(cat /opt/scripts/.packages) +apt-get -qq update + +packages=$(cat /opt/scripts/.packages) +for i in $packages; do + sudo apt-get -qq -y install $i +done + rm -rf /var/lib/apt/lists/* rm -f /opt/scripts/.packages diff --git a/opt/maintenance-scripts/iobroker_restart.sh b/opt/maintenance-scripts/iobroker_restart.sh index 14d6b92..c7e0dde 100644 --- a/opt/maintenance-scripts/iobroker_restart.sh +++ b/opt/maintenance-scripts/iobroker_restart.sh @@ -6,6 +6,5 @@ cd /opt/iobroker pkill io sleep 5 -node node_modules/iobroker.js-controller/controller.js >/opt/scripts/docker_iobroker_log.txt 2>&1 & - +gosu iobroker node node_modules/iobroker.js-controller/controller.js exit 0