mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2025-12-17 18:39:01 +02:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
250acdc992 | ||
|
|
f2e6780456 | ||
|
|
2983f1f63d | ||
|
|
ddccbe7dfa | ||
|
|
e99ab6fa82 | ||
|
|
16b9d318fd | ||
|
|
13182735f8 | ||
|
|
426035fa9b | ||
|
|
5eb3e6ef1d | ||
|
|
d56fca4074 | ||
|
|
6f2eb382d5 | ||
|
|
82aa3f0062 | ||
|
|
eb72bfea00 | ||
|
|
6e8f3a1448 |
10
Dockerfile
10
Dockerfile
@@ -1,12 +1,12 @@
|
||||
FROM debian:latest
|
||||
|
||||
MAINTAINER Andre Germann <info@buanet.de>
|
||||
MAINTAINER Andre Germann <https://buanet.de>
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
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 unzip sudo wget ffmpeg
|
||||
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_6.x | bash
|
||||
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
|
||||
@@ -29,8 +29,8 @@ RUN chmod +x iobroker_startup.sh
|
||||
|
||||
WORKDIR /opt/iobroker/
|
||||
|
||||
RUN npm install iobroker --unsafe-perm && echo $(hostname) > .install_host
|
||||
RUN update-rc.d iobroker.sh remove
|
||||
RUN npm install iobroker --unsafe-perm && npm i --production --unsafe-perm
|
||||
RUN update-rc.d iobroker.sh remove && echo $(hostname) > .install_host
|
||||
RUN npm install node-gyp -g
|
||||
|
||||
CMD ["sh", "/opt/scripts/iobroker_startup.sh"]
|
||||
|
||||
@@ -6,12 +6,21 @@ Cause the container ist based on debian:latest, it acts nearly like a full virtu
|
||||
|
||||
## Installation & Usage
|
||||
|
||||
**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
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
# Kann zum Beispiel aus ioBroker heraus aufgerufen werden um ioBroker neu zu starten.
|
||||
|
||||
cd /opt/iobroker
|
||||
./iobroker stop
|
||||
pkill io
|
||||
sleep 5
|
||||
./iobroker start
|
||||
node node_modules/iobroker.js-controller/controller.js >/opt/scripts/docker_iobroker_log.txt 2>&1 &
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
# Kann zum Beispiel aus ioBroker heraus aufgerufen werden um ioBroker zu stoppen.
|
||||
|
||||
cd /opt/iobroker
|
||||
./iobroker stop
|
||||
pkill io
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -4,7 +4,9 @@ cd /opt/iobroker
|
||||
|
||||
if [ -f .install_host ];
|
||||
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
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user