Skip to content

Commit

Permalink
Migrate to org.opencontainers.* labels (#431)
Browse files Browse the repository at this point in the history
Closes #427

Signed-off-by: mueller-ma <[email protected]>
  • Loading branch information
mueller-ma authored Nov 4, 2023
1 parent 579b0ea commit bf50d43
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
25 changes: 12 additions & 13 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,18 @@ ENV \
OPENHAB_USERDATA="/openhab/userdata" \
USER_ID="9001"

# Basic build-time metadata as defined at http://label-schema.org
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.docker.dockerfile="/Dockerfile" \
org.label-schema.license="EPL-2.0" \
org.label-schema.name="openHAB" \
org.label-schema.vendor="openHAB Foundation e.V." \
org.label-schema.version=$OPENHAB_VERSION \
org.label-schema.description="An open source, technology agnostic home automation platform" \
org.label-schema.url="https://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" \
maintainer="openHAB <[email protected]>"
# Basic build-time metadata as defined at https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
LABEL org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.licenses="EPL-2.0" \
org.opencontainers.image.title="openHAB" \
org.opencontainers.image.vendor="openHAB Foundation e.V." \
org.opencontainers.image.version=$OPENHAB_VERSION \
org.opencontainers.image.description="An open source, technology agnostic home automation platform" \
org.opencontainers.image.url="https://www.openhab.org/" \
org.opencontainers.image.documentation="https://www.openhab.org/docs/installation/docker.html" \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.source="https://github.com/openhab/openhab-docker.git" \
org.opencontainers.image.authors="openHAB <[email protected]>"

# Install basepackages
RUN apk update --no-cache && \
Expand Down
25 changes: 12 additions & 13 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,18 @@ ENV \
OPENHAB_USERDATA="/openhab/userdata" \
USER_ID="9001"

# Basic build-time metadata as defined at http://label-schema.org
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.docker.dockerfile="/Dockerfile" \
org.label-schema.license="EPL-2.0" \
org.label-schema.name="openHAB" \
org.label-schema.vendor="openHAB Foundation e.V." \
org.label-schema.version=$OPENHAB_VERSION \
org.label-schema.description="An open source, technology agnostic home automation platform" \
org.label-schema.url="https://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" \
maintainer="openHAB <[email protected]>"
# Basic build-time metadata as defined at https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
LABEL org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.licenses="EPL-2.0" \
org.opencontainers.image.title="openHAB" \
org.opencontainers.image.vendor="openHAB Foundation e.V." \
org.opencontainers.image.version=$OPENHAB_VERSION \
org.opencontainers.image.description="An open source, technology agnostic home automation platform" \
org.opencontainers.image.url="https://www.openhab.org/" \
org.opencontainers.image.documentation="https://www.openhab.org/docs/installation/docker.html" \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.source="https://github.com/openhab/openhab-docker.git" \
org.opencontainers.image.authors="openHAB <[email protected]>"

# Install basepackages
RUN apt-get update && \
Expand Down

0 comments on commit bf50d43

Please sign in to comment.