From e25be620a9a593bd4c5a3f5bc8a7411f7b772a17 Mon Sep 17 00:00:00 2001 From: Sankalp Yengaldas Date: Thu, 17 Oct 2024 01:23:42 +0530 Subject: [PATCH] add org.opencontainers.image url and source labels to dockerfiles (#6962) * add org.opencontainers.image url and source labels to dockerfiles Signed-off-by: Sankalp Yengaldas (cherry picked from commit f76a13fbfabbd995207a9859825cf6cdf347f01e) Signed-off-by: Brad Davidson --- Dockerfile | 2 ++ Dockerfile.windows | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6780dc285c..4fcac4c2ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -145,6 +145,8 @@ COPY --from=charts \ /charts/ FROM scratch AS runtime +LABEL org.opencontainers.image.url="https://hub.docker.com/r/rancher/rke2-runtime" +LABEL org.opencontainers.image.source="https://github.com/rancher/rke2" COPY --from=runtime-collect / / FROM ubuntu:22.04 AS test diff --git a/Dockerfile.windows b/Dockerfile.windows index dbb4f04ebf..0e42e93f93 100644 --- a/Dockerfile.windows +++ b/Dockerfile.windows @@ -105,6 +105,8 @@ RUN mv CalicoWindows/cni/calico-ipam.exe rancher/ RUN mv CalicoWindows/confd confd/ FROM scratch AS windows-runtime +LABEL org.opencontainers.image.url="https://hub.docker.com/r/rancher/rke2-runtime" +LABEL org.opencontainers.image.source="https://github.com/rancher/rke2" COPY --from=containerd /usr/local/bin/*.exe /bin/ COPY --from=windows-runtime-collect ./rancher/* /bin/ COPY --from=windows-runtime-collect ./confd/ /bin/confd