Compare commits

..

25 Commits

Author SHA1 Message Date
Andre
250acdc992 workaround for install problems 2018-12-07 18:23:19 +01:00
Andre
f2e6780456 changes for iobroker setup 2018-12-07 17:10:55 +01:00
Andre
2983f1f63d Update Dockerfile 2018-12-07 14:19:26 +01:00
Andre
ddccbe7dfa Update iobroker_startup.sh 2018-12-07 14:16:08 +01:00
Andre
e99ab6fa82 Update README.md 2018-12-06 21:49:20 +01:00
Andre
16b9d318fd changes for new iobroker setup 2018-12-06 21:48:35 +01:00
Andre
13182735f8 Update README.md 2018-12-05 14:42:53 +01:00
Andre
426035fa9b Merge pull request #13 from buanet/node8
Node 8 is now required for ioBroker
2018-12-05 14:23:01 +01:00
Andre
5eb3e6ef1d Merge branch 'master' into node8 2018-12-05 14:22:40 +01:00
Andre
d56fca4074 Update iobroker_stop.sh 2018-11-08 21:35:21 +01:00
Andre
6f2eb382d5 Update iobroker_restart.sh 2018-11-08 21:34:50 +01:00
andre
82aa3f0062 changes for node 8 2018-11-05 00:33:00 +01:00
Andre
eb72bfea00 Update README.md 2018-09-12 14:03:39 +02:00
Andre
6e8f3a1448 added support for firetv-adapter 2018-09-12 14:01:42 +02:00
Andre
dc31095c1c Update README.md 2018-08-21 13:31:59 +02:00
Andre
834fd976c0 added ffmpeg-package 2018-08-21 12:20:01 +02:00
Andre
609804ea0d Update Dockerfile 2018-08-20 15:26:37 +02:00
Andre
0f39f7ae5e Update Dockerfile 2018-08-20 15:23:12 +02:00
Andre
fdfbed9846 Update README.md 2018-04-04 11:20:28 +02:00
Andre
b4f7ba98b1 added ENV for timezone issue 2018-04-04 11:15:36 +02:00
Andre
351bfddc8d Update README.md 2018-03-29 23:02:02 +02:00
andre
8a8ac64952 added package 2018-03-21 23:24:58 +01:00
andre
e015276fc4 optimizing and testing 2017-12-27 16:55:54 +01:00
andre
4f41716e77 testing 2017-12-27 15:55:51 +01:00
andre
d301f754f4 optimized dockerfile and node 8 test 2017-12-27 12:03:58 +01:00
5 changed files with 43 additions and 13 deletions

View File

@@ -1,16 +1,19 @@
FROM debian:latest FROM debian:latest
MAINTAINER Andre Germann <info@buanet.de> MAINTAINER Andre Germann <https://buanet.de>
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y apt-utils curl avahi-daemon git libpcap-dev libavahi-compat-libdnssd-dev libfontconfig gnupg2 locales procps libudev-dev unzip sudo RUN apt-get update && apt-get install -y build-essential python apt-utils curl avahi-daemon git libpcap-dev libavahi-compat-libdnssd-dev libfontconfig gnupg2 locales procps libudev-dev libpam0g-dev unzip sudo wget ffmpeg android-tools-adb android-tools-fastboot
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash
RUN apt-get install -y nodejs
RUN sed -i '/^rlimit-nproc/s/^\(.*\)/#\1/g' /etc/avahi/avahi-daemon.conf RUN sed -i '/^rlimit-nproc/s/^\(.*\)/#\1/g' /etc/avahi/avahi-daemon.conf
RUN sed -i -e 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && \dpkg-reconfigure --frontend=noninteractive locales && \update-locale LANG=de_DE.UTF-8 RUN sed -i -e 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && \dpkg-reconfigure --frontend=noninteractive locales && \update-locale LANG=de_DE.UTF-8
ENV LANG de_DE.UTF-8 ENV LANG de_DE.UTF-8
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash
RUN apt-get install -y build-essential python nodejs
RUN cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime RUN cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime
ENV TZ Europe/Berlin
RUN mkdir -p /opt/iobroker/ && chmod 777 /opt/iobroker/ RUN mkdir -p /opt/iobroker/ && chmod 777 /opt/iobroker/
RUN mkdir -p /opt/scripts/ && chmod 777 /opt/scripts/ RUN mkdir -p /opt/scripts/ && chmod 777 /opt/scripts/
@@ -26,8 +29,9 @@ RUN chmod +x iobroker_startup.sh
WORKDIR /opt/iobroker/ WORKDIR /opt/iobroker/
RUN npm install iobroker --unsafe-perm && echo $(hostname) > .install_host RUN npm install iobroker --unsafe-perm && npm i --production --unsafe-perm
RUN update-rc.d iobroker.sh remove RUN update-rc.d iobroker.sh remove && echo $(hostname) > .install_host
RUN npm install node-gyp -g
CMD ["sh", "/opt/scripts/iobroker_startup.sh"] CMD ["sh", "/opt/scripts/iobroker_startup.sh"]

View File

@@ -1,15 +1,39 @@
# docker-iobroker # docker-iobroker
Docker image for ioBroker (http://iobroker.net) based on debian:latest (http://hub.docker.com/_/debian/) Docker image for ioBroker (http://iobroker.net) based on debian:latest (http://hub.docker.com/_/debian/)
This project creates a Docker image for running ioBroker in a Docker container. It is made for and tested on a Synology disk station with DSM 6.0.2 and Docker 1.11.2. But it should also work on other systems running Docker.<br> This project creates a Docker image for running ioBroker in a Docker container. It is made for and tested on a Synology Disk Station 1515+ with DSM 6 and Docker-package installed. But it should also work on other systems with Docker!<br>
Cause the container ist based on debian:latest, it acts nearly like a full virtual machine. That makes it possible to easily add some additional dependies for some ioBroker-Adapters. Cause the container ist based on debian:latest, it acts nearly like a full virtual machine. That makes it possible to easily add some additional dependies for some ioBroker-Adapters.
## Installation & Usage ## Installation & Usage
For instructions and discussion (in german) please visit ioBroker-Forum (http://forum.iobroker.net/viewtopic.php?f=17&t=5089). **Important Notice: Switching an existing ioBroker-installation from node6 to node8 (docker-iobroker v1 to v2) requires an additional step inside ioBroker! After Upgrade you have to call "reinstall.sh" for recompiling your Installation for the use with node8. For Details see official ioBroker-documentation (http://www.iobroker.net/docu/?page_id=5106&lang=de). Make backup first!!!**
A detailed tutorial (german) can be found on my website (https://buanet.de/2017/09/iobroker-unter-docker-auf-der-synology-diskstation/).<br>
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.
## Changelog ## Changelog
### v2.0.0 (2018-12-05)
* using node8 instead of node6
* changes for new iobroker setup
### v1.2.1beta (2018-09-12)
* added support for firetv-adapter
### v1.2.0 (2018-08-21)
* after testing making 1.1.3beta to latest stable release
### v1.1.3beta (2018-08-21)
* 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)
* added wget package
* updated readme.md
### v1.1.0 (2017-12-10) ### v1.1.0 (2017-12-10)
* changed startup call to fix restart issue * changed startup call to fix restart issue
* fixed avahi startup issue * fixed avahi startup issue
@@ -17,7 +41,7 @@ For instructions and discussion (in german) please visit ioBroker-Forum (http://
* added z-wave support * added z-wave support
* added logging to /opt/scripts/docker_iobroker_log.txt * added logging to /opt/scripts/docker_iobroker_log.txt
### v1.0.1 (2017-08-25) ### v1.0.1beta (2017-08-25)
* fixed locales issue * fixed locales issue
### v1.0.0 (2017-08-22) ### v1.0.0 (2017-08-22)

View File

@@ -4,8 +4,8 @@
# Kann zum Beispiel aus ioBroker heraus aufgerufen werden um ioBroker neu zu starten. # Kann zum Beispiel aus ioBroker heraus aufgerufen werden um ioBroker neu zu starten.
cd /opt/iobroker cd /opt/iobroker
./iobroker stop pkill io
sleep 5 sleep 5
./iobroker start node node_modules/iobroker.js-controller/controller.js >/opt/scripts/docker_iobroker_log.txt 2>&1 &
exit 0 exit 0

View File

@@ -4,6 +4,6 @@
# Kann zum Beispiel aus ioBroker heraus aufgerufen werden um ioBroker zu stoppen. # Kann zum Beispiel aus ioBroker heraus aufgerufen werden um ioBroker zu stoppen.
cd /opt/iobroker cd /opt/iobroker
./iobroker stop pkill io
exit 0 exit 0

View File

@@ -4,7 +4,9 @@ cd /opt/iobroker
if [ -f .install_host ]; if [ -f .install_host ];
then then
./iobroker host $(cat .install_host) && echo $(hostname) > .install_host echo $(hostname) > .install_host && ./iobroker host $(cat .install_host)
iobroker del admin.0 && iobroker del discovery.0
iobroker add admin && iobroker add discovery
rm .install_host rm .install_host
fi fi