Skip to content

Feature Request: It would be great if the docker image contained a label with the version number #21645

@pheitman

Description

@pheitman

Prerequisites

  • I am running the latest code. Mention the version if possible as well.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new and useful enhancement to share.

Feature Description

When checking the current container I haven't been able to determine which version I'm running. It would be great if the procedure for building the docker images included these two labels

ARG BUILD_DATE
ARG APP_VERSION

LABEL org.opencontainers.image.created=$BUILD_DATE
LABEL org.opencontainers.image.version=$APP_VERSION

Motivation

That way I'd know how far behind I am from the most recent and I can better evaluate if I should pull a newer image.

Possible Implementation

The docker build command would need to be updated to include

docker build --build-arg BUILD_DATE=$(shell date +"%Y-%m-%dT%H:%M:%S%Z") --build-arg APP_VERSION=${APP_VERSION}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions