diff --git a/README.md b/README.md index 0dc86ee..aea1f73 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,7 @@ A collection of delicious docker recipes. - [x] nifi - [x] nullmailer - [x] nullmailer-arm +- [x] openhab - [x] openssh - [x] phantomjs - [x] portia diff --git a/openhab/Dockerfile b/openhab/Dockerfile new file mode 100644 index 0000000..30d9a5b --- /dev/null +++ b/openhab/Dockerfile @@ -0,0 +1,25 @@ +# +# Dockerfile for openhab +# + +FROM java:jre-alpine +MAINTAINER kev + +ENV OPENHAB_VERSION 2.0.0-SNAPSHOT +ENV OPENHAB_FILE openhab-online-${OPENHAB_VERSION}.zip +ENV OPENHAB_URL https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-online/target/${OPENHAB_FILE} + +WORKDIR /app + +RUN set -xe \ + && apk add --no-cache curl \ + && curl -sSL $OPENHAB_URL > $OPENHAB_FILE \ + && unzip $OPENHAB_FILE \ + && apk del curl \ + && rm -rf $OPENHAB_FILE + +VOLUME /app/conf /app/userdata /app/addons + +EXPOSE 8080 8443 5555 + +CMD ["/app/start.sh"] diff --git a/openhab/README.md b/openhab/README.md new file mode 100644 index 0000000..cc05e7a --- /dev/null +++ b/openhab/README.md @@ -0,0 +1,19 @@ +openHAB +======= + +[openHAB][1] - a vendor and technology agnostic open source automation software +for your home. Build your smart home in no time! + +## docker-compose.yml + +```yaml +openhab: + image: vimagick/openhab + ports: + - "8080:8080" + - "8443:8443" + - "5555:5555" + restart: always +``` + +[1]: http://www.openhab.org/ diff --git a/openhab/docker-compose.yml b/openhab/docker-compose.yml new file mode 100644 index 0000000..d563ca3 --- /dev/null +++ b/openhab/docker-compose.yml @@ -0,0 +1,7 @@ +openhab: + image: vimagick/openhab + ports: + - "8080:8080" + - "8443:8443" + - "5555:5555" + restart: always