From 64dc7481cb0667a61c0f3939436e328b7962aa3f Mon Sep 17 00:00:00 2001 From: Heiko Reese Date: Mon, 8 Nov 2021 21:57:52 +0100 Subject: [PATCH] Added oci labels --- ci_container/Dockerfile | 12 ++++++++++++ ci_container/build.sh | 1 + 2 files changed, 13 insertions(+) diff --git a/ci_container/Dockerfile b/ci_container/Dockerfile index 5989691..7e1b297 100644 --- a/ci_container/Dockerfile +++ b/ci_container/Dockerfile @@ -1,5 +1,12 @@ FROM debian:latest +LABEL org.opencontainers.image.created=${BUILDTIMESTAMP} \ + org.opencontainers.image.authors="Heiko Reese " \ + org.opencontainers.image.title="exim build container" \ + org.opencontainers.image.description="A buld environment for exim-encrypt-dlfunc" \ + org.opencontainers.image.source="https://git.scc.kit.edu/mail/exim-encrypt-dlfunc/" \ + org.opencontainers.image.licenses="Apache-2.0" + RUN apt-get update; \ DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get install --no-install-recommends -y \ build-essential \ @@ -21,9 +28,14 @@ RUN apt-get update; \ gpgv1 \ meson; \ DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get install --no-install-recommends -y \ + less \ + mc \ + openssh-client \ vim; \ DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get clean; \ rm -rf /var/lib/apt/lists/*; RUN pip3 install --upgrade meson ninja; \ rm -rf ~/.cache/pip/*; + +WORKDIR /mnt/ diff --git a/ci_container/build.sh b/ci_container/build.sh index cd65a76..345c44d 100755 --- a/ci_container/build.sh +++ b/ci_container/build.sh @@ -64,6 +64,7 @@ for i in "${images[@]}"; do --format docker \ --iidfile "${IIDFILE}" \ --tag "${IMAGETAG}" + --build-arg BUILDTIMESTAMP="`date --iso-8601=seconds`" if [ "${REGISTRY}" != "none" ]; then echo "🚀 Pushing »${IMAGETAG}« to »${TARGET}«"