parent
86f075739f
commit
cc4cd587eb
12
Dockerfile
12
Dockerfile
|
@ -7,18 +7,6 @@ ARG ARCH=amd64
|
|||
ARG DOWNLOAD_URL="https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-online/target/openhab-online-2.0.0-SNAPSHOT.zip"
|
||||
ENV APPDIR="/openhab" OPENHAB_HTTP_PORT='8080' OPENHAB_HTTPS_PORT='8443' EXTRA_JAVA_OPTS=''
|
||||
|
||||
# Basic build-time metadata as defined at http://label-schema.org
|
||||
ARG BUILD_DATE
|
||||
ARG VCS_REF
|
||||
LABEL org.label-schema.build-date=$BUILD_DATE \
|
||||
org.label-schema.docker.dockerfile="/Dockerfile" \
|
||||
org.label-schema.license="EPL" \
|
||||
org.label-schema.name="openHAB" \
|
||||
org.label-schema.url="http://www.openhab.com/" \
|
||||
org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-type="Git" \
|
||||
org.label-schema.vcs-url="https://github.com/openhab/openhab-docker.git"
|
||||
|
||||
# Install Basepackages
|
||||
RUN \
|
||||
apt-get update && \
|
||||
|
|
2
Makefile
2
Makefile
|
@ -14,7 +14,7 @@ else
|
|||
endif
|
||||
|
||||
build: tmp-$(TARGET)/Dockerfile
|
||||
docker build --build-arg ARCH=$(TARGET) --build-arg DOWNLOAD_URL=$(DOWNLOAD_URL) --build-arg VCS_REF=`git rev-parse --short HEAD` --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` -t $(DOCKER_REPO):$(TARGET)-$(FLAVOR) tmp-$(TARGET)
|
||||
docker build --build-arg ARCH=$(TARGET) --build-arg DOWNLOAD_URL=$(DOWNLOAD_URL) -t $(DOCKER_REPO):$(TARGET)-$(FLAVOR) tmp-$(TARGET)
|
||||
docker run --rm $(DOCKER_REPO):$(TARGET)-$(FLAVOR) uname -a
|
||||
|
||||
tmp-$(TARGET)/Dockerfile: Dockerfile $(shell find files)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# openHAB Docker Containers
|
||||
|
||||
[](https://travis-ci.org/openhab/openhab-docker) [](https://imagelayers.io/?images=openhab/openhab:latest 'Get your own badge on imagelayers.io') [](https://microbadger.com/#/images/openhab/openhab:amd64-offline) [](https://hub.docker.com/r/openhab/openhab/) [](https://hub.docker.com/r/openhab/openhab/) [](https://gitter.im/openhab/openhab-docker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
[](https://travis-ci.org/openhab/openhab-docker) [](https://imagelayers.io/?images=openhab/openhab:latest 'Get your own badge on imagelayers.io') [](https://hub.docker.com/r/openhab/openhab/) [](https://hub.docker.com/r/openhab/openhab/) [](https://gitter.im/openhab/openhab-docker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
Repository for building docker containers for [openHAB](http://openhab.org) (Home Automation Server).
|
||||
|
||||
|
|
Loading…
Reference in New Issue