mirror of
https://github.com/vegardit/docker-openldap.git
synced 2026-04-11 10:45:15 +02:00
add docker labels
This commit is contained in:
parent
b4eceb32c7
commit
f1aba7e385
|
|
@ -1,6 +1,6 @@
|
|||
# vegardit/openldap <a href="https://github.com/vegardit/docker-openldap/" title="GitHub Repo"><img height="30" src="https://raw.githubusercontent.com/simple-icons/simple-icons/develop/icons/github.svg?sanitize=true"></a>
|
||||
|
||||
[](https://travis-ci.com/vegardit/docker-openldap)
|
||||
[](https://travis-ci.com/vegardit/docker-openldap)
|
||||
[](#license)
|
||||
[](https://hub.docker.com/r/vegardit/openldap)
|
||||
[](https://hub.docker.com/r/vegardit/openldap)
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ last_commit_date=$(date -d @$(git log -1 --format="%at") --utc +"%Y%m%d_%H%M%S")
|
|||
|
||||
docker build $(dirname $0)/image \
|
||||
--compress \
|
||||
--build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
|
||||
--build-arg GIT_BRANCH="${GIT_BRANCH:-$(git rev-parse --abbrev-ref HEAD)}" \
|
||||
--build-arg GIT_COMMIT_DATE="$(date -d @$(git log -1 --format='%at') --utc +'%Y-%m-%d %H:%M:%S UTC')" \
|
||||
--build-arg GIT_COMMIT_HASH="$(git rev-parse --short HEAD)" \
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ RUN \
|
|||
apt-get update -y && \
|
||||
apt-get install --no-install-recommends -y libcomerr2 mc && \
|
||||
apt-get install --no-install-recommends -y htop less procps vim && \
|
||||
echo 'set ignorecase\n\
|
||||
echo -e 'set ignorecase\n\
|
||||
set showmatch\n\
|
||||
set novisualbell\n\
|
||||
set noerrorbells\n\
|
||||
|
|
@ -82,14 +82,17 @@ set mouse-=a' > ~/.vimrc; \
|
|||
|
||||
VOLUME ["/etc/ldap/slapd.d", "/var/lib/ldap"]
|
||||
|
||||
ARG BUILD_DATE
|
||||
ARG GIT_REPO_URL
|
||||
ARG GIT_BRANCH
|
||||
ARG GIT_COMMIT_HASH
|
||||
ARG GIT_COMMIT_DATE
|
||||
|
||||
LABEL \
|
||||
org.label-schema.schema-version="1.0" \
|
||||
org.label-schema.build-date=$BUILD_DATE \
|
||||
org.label-schema.vcs-ref=$GIT_COMMIT_HASH \
|
||||
org.label-schema.vcs-url="https://github.com/vegardit/docker-openldap"
|
||||
org.label-schema.vcs-url=$GIT_REPO_URL
|
||||
|
||||
RUN \
|
||||
echo "GIT_REPO: $GIT_REPO_URL" > /opt/build_info && \
|
||||
|
|
|
|||
Loading…
Reference in a new issue