Docker image - pfrommerd/insteon-terminal GitHub Wiki

Docker Image

A simple way to use insteon-terminal without installing dependencies on your system.

Create the Dockerfile

FROM ubuntu:14.04
MAINTAINER Jim Shank <[email protected]>

RUN set -x && apt-get update
RUN set -x && DEBIAN_FRONTEND=noninteractive apt-get install -y \
    git ant default-jdk \
    && rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/vastsuperking/insteon-terminal.git

WORKDIR insteon-terminal
RUN ["ant","jar"]

Get a local copy of init.py and put it in the same directory as the Dockerfile.

Build the docker image

docker build -t "jshank/insteon-terminal" .

Run the command

docker run -it --rm --privileged -e "PLM_PORT=/dev/ttyS0" -v $(pwd)/init.py:/insteon-terminal/init.py jshank/insteon-terminal ./insteon-terminal