From c81da456934e12aa675bad09df91030d7cec13a5 Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 16 Apr 2020 11:38:53 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index eb21684..36b043a 100644 --- a/README.md +++ b/README.md @@ -211,7 +211,7 @@ Thank you! ### v1.2.0 (2018-08-21) * v1.1.3beta (2018-08-21) - * added ffmpeg-package for yahka to support webcams + * ~~added ffmpeg-package for yahka to support webcams~~ * v1.1.2beta (2018-04-04) * added ENV for timezone issue * v1.1.1beta (2018-03-29) @@ -234,7 +234,7 @@ Thank you! * added some maintenance scripts ### v0.2.1 (2017-08-16) -* added libfontconfig package (for iobroker.phantomjs) +* ~~added libfontconfig package (for iobroker.phantomjs)~~ * added gnupg2 package as prerequisite for installing node version 6 ### v0.2.0 (2017-06-04) @@ -242,7 +242,7 @@ Thank you! * changed node version from 4 to 6 ### v0.1.2 (2017-03-14) -* added libpcap-dev package (for iobroker.amazon-dash) +* ~~added libpcap-dev package (for iobroker.amazon-dash)~~ ### v0.1.1 (2017-03-10) * added git package From 5a0dd59c3c2f2c21071d7919448411d3ce41c915 Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 20 Apr 2020 22:32:26 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 36b043a..d66e5c5 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,8 @@ Source: https://github.com/buanet/docker-iobroker IoBroker for Docker is an Dockerimage for ioBroker IoT platform (http://www.iobroker.net). -It is originally made for and always tested on a Synology Disk Station 1515+ with DSM 6 and official Docker package installed. But it also works on other systems with Docker installed! - -Version 4 now supports running the Image in Docker on the following architectures: amd64, armv7hf, aarch64. -Feel free to ask for more architectures by opening an github issue. +Since version 4 it is available for the following architectures: amd64, armv7hf, aarch64. +You need another architecture? Let me know by opening an github issue. Thx. ## Important notice @@ -19,13 +17,16 @@ After upgrading your iobroker container you have to call "npm rebuild" or "reins For more details please see official ioBroker documentation: [EN](https://www.iobroker.net/#en/documentation/install/updatenode.md) | [DE](https://www.iobroker.net/#de/documentation/install/updatenode.md). Make backup first! +By the way, a more comfortable way is to use "iobroker backup" to create a full backup of your existing installation and copy it into a empty folder which you will mount to /opt/iobroker when setting up a new container. The startup script will automatically detect the backup file and restore it to the new container. For more details see "Mounting folder/ volume" section of this readme.md file. + ## Getting started A detailed tutorial (german, based on v3.0.0) can be found here: [https://buanet.de](https://buanet.de/2019/05/iobroker-unter-docker-auf-der-synology-diskstation-v3/). Please notice that the old tutorial is outdated and does no longer work! -For discussion and support please visit [ioBroker forum thread](http://forum.iobroker.net/viewtopic.php?f=17&t=5089) or use the comments section at the linked tutorial. Please do not contact me directly for any support-reasons. Every support question should be answered in a public place. Thank you. +For discussion and support please visit [ioBroker forum thread](http://forum.iobroker.net/viewtopic.php?f=17&t=5089) or use the comments section at the linked tutorial. Please do not contact me directly for any support-reasons. Every support question should be answered in a public place. Thanks in advance. +If you think you found a bug or simply want to request a new feature please open an issue on Github. -The following ways to geht iobroker-container running are only examples. Maybe you have to change, add or replace parameters to configure ioBroker for your environment. +The following ways to get iobroker-container running are only examples. Maybe you have to change, add or replace parameters to configure ioBroker for fitting your needs. ### Running from commandline @@ -88,21 +89,21 @@ You do not have to declare every single variable when stting up your container. ### Mounting folder/ volume It is possible to mount an empty folder to /opt/iobroker during first startup of the container. The Startupscript will check this folder and restore content if it is empty. -Since v4.1.0 it is also possible mount a folder filled up with an iobroker backup file (created with backitup adapter) named like this: "iobroker_2020_01_06-01_09_10_backupiobroker.tar.gz". +Since v4.1.0 it is also possible mount a folder filled up with an iobroker backup file (for example created with backitup adapter) named like this: "iobroker_2020_01_06-01_09_10_backupiobroker.tar.gz". The startup script will detect this backup and restore it during the start of the container. Plese see container logs when starting the container for more details! Note: It is absolutely recommended to use a mounted folder or persistent volume for /opt/iobroker folder! 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. +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 of this readme.md file. **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 +### Mounting USB device -After some issues with permissions related to the use of a dedicated user for ioBroker, I added some code for fixing permissions on container startup. This might take a few minutes on first startup. Please take a look at the container logs and be patient! +If you want to use a USB device within ioBroker inside your container don“t forget to [mount the device](https://docs.docker.com/engine/reference/commandline/run/#add-host-device-to-container---device) on container startup and use the environment variable "USBDEVICES". -### Userdefined startup scripts (advanced setting/ beta status) +### Userdefined startup scripts In some cases it migth be helpful to add some script code to the startup script of the container. This is now possible by mounting an additional folder to the container and place a userscript in there. The folder containing your userscripts must be mounted under /opt/userscripts inside the container. If you mount an empty folder you will get two example scripts to be restored in that folder. Just try it out. From 66433c414f3b03dbc465b05bcb8559abaeec2bb4 Mon Sep 17 00:00:00 2001 From: buanet Date: Mon, 4 May 2020 10:25:14 +0200 Subject: [PATCH 3/3] testing node 12 --- amd64/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amd64/Dockerfile b/amd64/Dockerfile index 9f15b1d..f0a3d33 100644 --- a/amd64/Dockerfile +++ b/amd64/Dockerfile @@ -30,8 +30,8 @@ RUN apt-get update && apt-get install -y \ wget \ && rm -rf /var/lib/apt/lists/* -# Install node10 -RUN curl -sL https://deb.nodesource.com/setup_10.x | bash \ +# Install node +RUN curl -sL https://deb.nodesource.com/setup_12.x | bash \ && apt-get update && apt-get install -y nodejs \ && rm -rf /var/lib/apt/lists/*