1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-11 16:32:59 +00:00

Rework label handling (#387)

* be smarter about labels

inspired by https://github.com/Peter-SAARLAND/zero
This commit is contained in:
Felix Bartels
2020-04-28 22:16:12 +02:00
committed by GitHub
parent a0c14b6ad4
commit 110ea43bf6
16 changed files with 58 additions and 48 deletions
+3 -3
View File
@@ -1,16 +1,13 @@
ARG CODE_VERSION=1.3.0
FROM osixia/openldap:${CODE_VERSION}
ARG VCS_REF
ARG CODE_VERSION
ENV CODE_VERSION="${CODE_VERSION}"
LABEL maintainer=az@zok.xyz \
org.label-schema.name="Kopano LDAP container" \
org.label-schema.description="Container for running OpenLDAP, which already has the Kopano schema included." \
org.label-schema.url="https://kopano.io" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/zokradonh/kopano-docker" \
org.label-schema.version=$CODE_VERSION \
org.label-schema.schema-version="1.0"
@@ -18,3 +15,6 @@ LABEL maintainer=az@zok.xyz \
COPY bootstrap /container/service/slapd/assets/config/bootstrap
RUN rm /container/service/slapd/assets/config/bootstrap/schema/mmc/mail.schema
RUN touch /etc/ldap/slapd.conf
ARG VCS_REF
LABEL org.label-schema.vcs-ref=$VCS_REF