tdeckers / docker-openhab Goto Github PK
View Code? Open in Web Editor NEWDocker image for Openhab
Docker image for Openhab
It would help use OpenHAB newbies out a lot :)
Between 1.7.0 and 1.7.1 the name of
distribution-1.7.0-demo-configuration.zip
changed to
distribution-1.7.1-demo.zip
so the download_openhab.sh script will not download it.
I've got -p "127.0.0.1:5555:5555" in my docker run command. After that I run: "telnet localhost 5555" from my host machine but I'm not able to connect to the osgi console interface.
Should you be specifying the port (5555) after the -console command when you run the OpenHAB jar?
When running the example there seems to be a "/" where it should be a space in:
docker run -d -p 8080:8080 -v /tmp/configuration:/etc/openhab/tdeckers/openhab
Should be:
docker run -d -p 8080:8080 -v /tmp/configuration:/etc/openhab tdeckers/openhab
It seems I was having trouble getting the my.openhab add-on to correctly map in the configuration add ons.cfg file. Entering the container I can see that there are 2 versions with the same name (1.7.0 / 1.7.1) so I renamed the 1.7.0 file to a different name. After doing so the mapping worked fine. Likely want to remove that extra add-on from the addons-available directory.
The dockerfile contains a duplicate entry for apt-get the same packages.
One of them could be removed; to increase performance.
Overall it is advised not to run apt-get upgrade inside the container:
https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
Hi, sorry if this is the wrong place for discussion.
I tried to create my own docker for OpenHAB2 a while ago, but being new to both Docker and OpenHAB I failed miserably (could get the interface to launch, but nothing else). Now I have OpenHAB running in a VM on UnRaid, but does your docker method work with a USB ZWave stick, i.e. it'll mount onto ttyUSB0 etc and can be used in HabMIN?
If so I might move back over to Docker instead of VM.
Thanks
Christian
As the title says.
Please update for 1.6
According to this guide
to be online with the new service we need to add the org.openhab.io.openhabcloud addon to the addon directory.
This addon is not yet part of the distribution 1.8.3 (it will be in 1.9).
How to proceed ?
I have no idea how to add this addon
thanks
It seems that by default openhab will put the log files in a java environment variable openhab.logdir but I don't see any way to control that since it needs to be passed into the java command like -Dopenhab.logdir ?
I've tried mounting /var/log/openhab but I don't see any log files showing up there.
One thing I did get to work was to create a logback.xml and tell it to explicitly write the log files to /var/log/openhab but unfortunately it appears as though some plugins rely on openhab.logdir to find the log files.
The immediately obvious solution would be to change this docker image so that it passes in the environment variable, say, OPENHAB_LOGDIR into Java when launching OpenHAB so that the logdir gets set when I do: "docker run -e OPENHAB_LOGDIR=/var/log/openhab" but I wanted to be sure I wasn't missing anything obvious before messing with making changes to the image :)
Hi, quite silent here therefore not sure if you still support this Image. I have some challenges that the user interface takes quite long until a switch is changed. On my raspberry this was always less than a second. Now 3 to 5 seconds is normal. I cannot see any load above 10%. Also changing the committed ram from unlimited to 2GB sem to make not that big effect. Any idea?
Everything else is unchanged. Just switched to docker on a Synology 918+ with 12GB ram. Any hint would be great.
I just updated my openhab and noticed that time zone file is not working any more.
with out further checking I think dpkg-reconfigure -f noninteractive tzdata behaves other in the ubuntu:16.04 image.
Regards
Alex
As discussed in openhab/openhab1-addons#3487, sometimes interface lock files get stuck in /var/lock
. As the container definitely is not running software during boot, it should be safe to assume all existing lock files are superfluous and can be deleted.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.