1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-24 07:48:38 +00:00

add openhab

This commit is contained in:
kev 2016-08-18 14:38:20 +08:00
parent 0d5b06a99e
commit 31ce33b440
4 changed files with 52 additions and 0 deletions

@ -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

25
openhab/Dockerfile Normal file

@ -0,0 +1,25 @@
#
# Dockerfile for openhab
#
FROM java:jre-alpine
MAINTAINER kev <noreply@easypi.info>
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"]

19
openhab/README.md Normal file

@ -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/

@ -0,0 +1,7 @@
openhab:
image: vimagick/openhab
ports:
- "8080:8080"
- "8443:8443"
- "5555:5555"
restart: always