From 2fff6d683421d9f9d0999953e2a3e8397d6729ba Mon Sep 17 00:00:00 2001 From: Varsha U N Date: Sat, 9 Nov 2024 08:15:06 +0530 Subject: [PATCH 1/3] added OCI labels to dockerfile Signed-off-by: Varsha U N --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index d4c641d7a2..20dd644610 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,13 @@ FROM --platform=linux/amd64 python:3.12-slim-bookworm +# OCI Labels +LABEL org.opencontainers.image.title="ScanCode Toolkit" +LABEL org.opencontainers.image.description="ScanCode Toolkit for code scanning and analysis." +LABEL org.opencontainers.image.url="https://github.com/nexB/scancode-toolkit" +LABEL org.opencontainers.image.source="https://github.com/nexB/scancode-toolkit" +LABEL org.opencontainers.image.documentation="https://scancode-toolkit.readthedocs.io/" + # Python settings: Force unbuffered stdout and stderr (i.e. they are flushed to terminal immediately) ENV PYTHONUNBUFFERED 1 # Python settings: do not write pyc files From c78de3943618af38432b4fe668c8ca3bd0be5147 Mon Sep 17 00:00:00 2001 From: Varsha U N Date: Thu, 14 Nov 2024 22:02:07 +0530 Subject: [PATCH 2/3] added few more labels Signed-off-by: Varsha U N --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 20dd644610..19a524bb7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,13 @@ LABEL org.opencontainers.image.description="ScanCode Toolkit for code scanning a LABEL org.opencontainers.image.url="https://github.com/nexB/scancode-toolkit" LABEL org.opencontainers.image.source="https://github.com/nexB/scancode-toolkit" LABEL org.opencontainers.image.documentation="https://scancode-toolkit.readthedocs.io/" +LABEL org.opencontainers.image.created="${BUILD_DATE}" +LABEL org.opencontainers.image.authors="https://github.com/nexB/scancode-toolkit" +LABEL org.opencontainers.image.version="v32.3.0" +LABEL org.opencontainers.image.vendor="nexB Inc." +LABEL org.opencontainers.image.licenses="Apache-2.0" +LABEL org.opencontainers.image.ref.name="latest" + # Python settings: Force unbuffered stdout and stderr (i.e. they are flushed to terminal immediately) ENV PYTHONUNBUFFERED 1 From 2d6065714b192b386f6e964e03d54da8c4310b84 Mon Sep 17 00:00:00 2001 From: Varsha U N Date: Wed, 16 Apr 2025 23:19:27 +0530 Subject: [PATCH 3/3] Add neccessary OCI labels Signed-off-by: Varsha U N --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 19a524bb7f..724c946008 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,13 +10,11 @@ FROM --platform=linux/amd64 python:3.12-slim-bookworm # OCI Labels -LABEL org.opencontainers.image.title="ScanCode Toolkit" -LABEL org.opencontainers.image.description="ScanCode Toolkit for code scanning and analysis." -LABEL org.opencontainers.image.url="https://github.com/nexB/scancode-toolkit" +LABEL org.opencontainers.image.title="scancode toolkit" +LABEL org.opencontainers.image.description="scancode toolkit detects licenses,copyrights,dependecies by scanning code to discover and inventory open source and third-party packages used in your code" LABEL org.opencontainers.image.source="https://github.com/nexB/scancode-toolkit" LABEL org.opencontainers.image.documentation="https://scancode-toolkit.readthedocs.io/" -LABEL org.opencontainers.image.created="${BUILD_DATE}" -LABEL org.opencontainers.image.authors="https://github.com/nexB/scancode-toolkit" +LABEL org.opencontainers.image.authors=" https://github.com/aboutcode-org/scancode-toolkit" LABEL org.opencontainers.image.version="v32.3.0" LABEL org.opencontainers.image.vendor="nexB Inc." LABEL org.opencontainers.image.licenses="Apache-2.0"