From 74ca02298ebebeccb5dbdb862818e034ce019876 Mon Sep 17 00:00:00 2001 From: Liz Rice Date: Thu, 22 Jun 2017 16:15:12 +0100 Subject: [PATCH] Add image labels --- Dockerfile | 11 +++++++++++ hooks/build | 0 2 files changed, 11 insertions(+) create mode 100644 hooks/build diff --git a/Dockerfile b/Dockerfile index aa9ca72..d71991b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,3 +11,14 @@ RUN wget https://raw.githubusercontent.com/aquasecurity/kube-bench/master/cfg/co WORKDIR / ADD entrypoint.sh /entrypoint.sh ENTRYPOINT /entrypoint.sh + +# 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.name="kube-bench" \ + org.label-schema.description="Run the CIS Kubernetes Benchmark tests" \ + org.label-schema.url="https://github.com/aquasecurity/kube-bench" \ + org.label-schema.vcs-ref=$VCS_REF \ + org.label-schema.vcs-url="https://github.com/aquasecurity/kube-bench" \ + org.label-schema.schema-version="1.0" diff --git a/hooks/build b/hooks/build new file mode 100644 index 0000000..e69de29