From 2be1731bf8a7786fd38622a13d0273da4d1a6249 Mon Sep 17 00:00:00 2001 From: RobertSamoilescu Date: Fri, 11 Apr 2025 15:28:42 +0100 Subject: [PATCH] Included more labels for the docker image (#2106) --- .github/workflows/release.yml | 21 +++++++++++++++++++++ Dockerfile | 3 --- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c8d32de0..44e28a0e7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,6 +55,13 @@ jobs: run: | DOCKER_BUILDKIT=1 docker build . \ --build-arg RUNTIMES=all \ + --label name="mlserver" \ + --label vendor="SeldonIO" \ + --label version="${{ github.event.inputs.version }}" \ + --label release="${{ github.event.inputs.version }}" \ + --label summary="An open source inference server for your machine learning models." \ + --label description="MLServer aims to provide an easy way to start serving your machine learning models through a REST and gRPC interface, fully compliant with KFServing’s V2 Dataplane spec." \ + --label maintainer="hello@seldon.io" \ -t $MLSERVER_IMAGE - name: Scan Docker Image uses: snyk/actions/docker@master @@ -126,6 +133,13 @@ jobs: run: | DOCKER_BUILDKIT=1 docker build . \ --build-arg RUNTIMES="" \ + --label name="mlserver" \ + --label vendor="SeldonIO" \ + --label version="${{ github.event.inputs.version }}" \ + --label release="${{ github.event.inputs.version }}" \ + --label summary="An open source inference server for your machine learning models." \ + --label description="MLServer aims to provide an easy way to start serving your machine learning models through a REST and gRPC interface, fully compliant with KFServing’s V2 Dataplane spec." \ + --label maintainer="hello@seldon.io" \ -t $MLSERVER_IMAGE-slim - name: Scan Docker Image uses: snyk/actions/docker@master @@ -249,6 +263,13 @@ jobs: run: | DOCKER_BUILDKIT=1 docker build . \ --build-arg RUNTIMES=mlserver-${{ matrix.runtime }} \ + --label name="mlserver" \ + --label vendor="SeldonIO" \ + --label version="${{ github.event.inputs.version }}" \ + --label release="${{ github.event.inputs.version }}" \ + --label summary="An open source inference server for your machine learning models." \ + --label description="MLServer aims to provide an easy way to start serving your machine learning models through a REST and gRPC interface, fully compliant with KFServing’s V2 Dataplane spec." \ + --label maintainer="hello@seldon.io" \ -t $MLSERVER_IMAGE-${{ matrix.runtime }} - name: Scan Docker Image uses: snyk/actions/docker@master diff --git a/Dockerfile b/Dockerfile index 249cd7a4c..8de16cf2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,6 @@ FROM python:3.10-slim AS wheel-builder SHELL ["/bin/bash", "-l", "-c"] -LABEL vendor="SeldonIO" -LABEL maintainer="hello@seldon.io" - ARG POETRY_VERSION="2.1.1" COPY ./hack/build-wheels.sh ./hack/build-wheels.sh