Tuesday, July 15, 2014

Docker repository for Openhab 1.5.0

I just finished a Docker repository for Openhab 1.5.0 which allows faster deployment.  The repo is available here:
https://registry.hub.docker.com/u/tdeckers/openhab/

The source code for the repository is available from github:
https://github.com/tdeckers/docker-openhab

Assuming you have docker installed on your machine, these are the few steps to take to get openhab up and running.

  1. Create a config directory and store your openhab configuration files there.  This is the content of [OPENHAB_HOME]/configurations and will be injected into the container.  Let's assume you chose /tmp/config.
  2. Add a file called addons.cfg into that same config directory.  This file is used to determine which plugins to enable for your deployment.  Each line in the config file should have the name of the addon jar file to load. My file looks like this:
# cat config/addons.cfg
org.openhab.action.squeezebox-1.5.0.jar
org.openhab.action.xmpp-1.5.0.jar
org.openhab.binding.configadmin-1.5.0.jar
org.openhab.binding.exec-1.5.0.jar
org.openhab.binding.http-1.5.0.jar
org.openhab.binding.knx-1.5.0.jar
org.openhab.binding.mqtt-1.5.0.jar
org.openhab.binding.networkhealth-1.5.0.jar
org.openhab.binding.ntp-1.5.0.jar
org.openhab.binding.serial-1.5.0.jar
org.openhab.binding.squeezebox-1.5.0.jar
org.openhab.binding.wol-1.5.0.jar
org.openhab.io.multimedia.tts.marytts-1.5.0.jar
org.openhab.io.squeezeserver-1.5.0.jar
org.openhab.persistence.cosm-1.5.0.jar
org.openhab.persistence.db4o-1.5.0.jar
org.openhab.persistence.gcal-1.5.0.jar
org.openhab.persistence.logging-1.5.0.jar
org.openhab.persistence.rrd4j-1.5.0.jar
  1. Run docker:
    docker run --rm -p 80:8080 -v /tmp/config:/opt/openhab/configurations tdeckers/openhab
Now you can access the openhab installation on port 80 of your host.

Enjoy.

2 comments:

  1. AWS Training in Bangalore - Live Online & Classroom
    myTectra Amazon Web Services (AWS) certification training helps you to gain real time hands on experience on AWS. myTectra offers AWS training in Bangalore using classroom and AWS Online Training globally. AWS Training at myTectra delivered by the experienced professional who has atleast 4 years of relavent AWS experince and overall 8-15 years of IT experience. myTectra Offers AWS Training since 2013 and retained the positions of Top AWS Training Company in Bangalore and India.

    IOT Training in Bangalore - Live Online & Classroom
    IOT Training course observes iot as the platform for networking of different devices on the internet and their inter related communication. Reading data through the sensors and processing it with applications sitting in the cloud and thereafter passing the processed data to generate different kind of output is the motive of the complete curricula. Students are made to understand the type of input devices and communications among the devices in a wireless media.

    ReplyDelete
  2. Hadoop concepts, Applying modelling through R programming using Machine learning algorithms and illustrate impeccable Data Visualization by leveraging on 'R' capabilities.With companies across industries striving to bring their research and analysis (R&A) departments up to speed, the demand for qualified data scientists is rising.
    data science training in bangalore
    Big Data and Hadoop training Unlike traditional systems, Big Data and Hadoop enables multiple types of analytic workloads to run on the same data, at the same time, at massive scale on industry-standard hardware.myTectra Big Data and Hadoop training is designed to help you become a expert Hadoop developer. myTectra offers Big Data Hadoop Training in Bangalore using Class Room.
    hadoop training in bangalore
    Looking for best Machine Learning Training in Bangalore then join myTectra the leader in Machine Learning Training in Bangalore. Classroom & Online Training
    machine learning training in bangalore

    ReplyDelete