Skip to content

larizzo/docker-openhab-perl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenHAB Dockerfile

Docker Container with the OpenHAB 1.8.3, Java8 and Perl.

Run contnainer with

docker run -itd -p 8080:8080 larizzo/openhab

Container Parametrization

There are several parameters that can be passed to the container for configuring OpenHAB.

Debug mode

By default this container starts in normal mode. To start in debug mode (more log output), add environment parameter "debug". Example:

docker run -it -e debug=true larizzo/openhab

Mounting Config directory

This probably will be the most used parametrization in order to store the configuration persistent to your local disk. There are two ways to do this, in private docker containers I always recommend the host volume mappings over data volumes. Mount a configuration directory on the host:

docker run -itd -v /config/dir/on/host:/opt/openhab/configurations larizzo/openhab

Configuring Bindings

For Performance Reasons no Bindings are activated by default but they are delivered for configuration with the OpenHAB image. All binding jars are available inside the container at /opt/openhab-all-bindings. To activate bindings place a file in /opt/openhab/configurations (usually via volume-mounting) called "bindings.list" and just list any binding without version part line per line. Example:

org.openhab.binding.milight
org.openhab.io.squeezeserver

RUN ln -s org.openhab.binding.milight-1.8.0.jar /opt/openhab/addons/org.openhab.binding.milight-$OPENHAB_VERSION.jar

Of course it's also possible to copy or move a addon directly to /opt/openhab/addons.

Access to OpenHAB

After launching the container, HABMin is reachable at:

http://:8080/habmin

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages