teraslice icon indicating copy to clipboard operation
teraslice copied to clipboard

Teraslice Docker Images Should have Annotations (labels)

Open godber opened this issue 2 years ago • 1 comments

The Teraslice Docker Image should have an image LABEL or annotation:

https://github.com/opencontainers/image-spec/blob/main/annotations.md

For example

https://github.com/opensearch-project/opensearch-build/blob/main/docker/release/dockerfiles/opensearch.al2.dockerfile#L97-L106

or

https://github.com/elastic/dockerfiles/blob/8.1/elasticsearch/Dockerfile#L138-L156

godber avatar Apr 21 '22 20:04 godber

How about adding this to Dockerfile for opencontainers image spec

LABEL org.opencontainers.image.version="$TERASLICE_VERSION" \
  org.opencontainers.image.created="$BUILD_TIMESTAMP" \
  org.opencontainers.image.documentation="https://terascope.github.io/teraslice/docs/overview" \
  org.opencontainers.image.licenses="Apache-2.0" \
  org.opencontainers.image.revision="$GITHUB_SHA" \
  org.opencontainers.image.source="https://github.com/terascope/teraslice" \
  org.opencontainers.image.title="Teraslice" \
  org.opencontainers.image.url="https://terascope.github.io/teraslice" \
  org.opencontainers.image.vendor="Terascope"

mkhpalm avatar Jan 11 '24 22:01 mkhpalm

Are TERASLICE_VERSION and BUILD_TIMESTAMP environmental variables that will be available in CI? I know GITHUB_SHA is. I can grab the teraslice version out of the package.json if needed.

busma13 avatar Jul 03 '24 23:07 busma13