Skip to content

Commit

Permalink
[YUNIKORN-2446] Add OCI annotations to public docker images (apache#199)
Browse files Browse the repository at this point in the history
Closes: apache#199

Signed-off-by: Craig Condit <[email protected]>
  • Loading branch information
ryankert01 authored and dcoric committed Aug 30, 2024
1 parent 5460d2c commit 9eb0d0d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ RELEASE_BIN_DIR=${OUTPUT}/prod
SERVER_BINARY=yunikorn-web
REPO=github.com/apache/yunikorn-web/pkg

IMAGE_SOURCE?=https://github.com/apache/yunikorn-k8shim
IMAGE_URL?=https://hub.docker.com/r/apache/yunikorn
LICENSE=Apache-2.0
DOCS_URL=https://yunikorn.apache.org

# PATH
export PATH := $(BASE_DIR)/$(TOOLS_DIR):$(BASE_DIR)/$(TOOLS_DIR)/bin:$(PATH)

Expand Down Expand Up @@ -258,6 +263,15 @@ image: $(RELEASE_BIN_DIR)/$(SERVER_BINARY)
--label "yunikorn-web-revision=${WEB_SHA}" \
--label "Version=${VERSION}" \
--label "BuildTimeStamp=${DATE}" \
--label "org.opencontainers.image.title=${SERVER_BINARY}" \
--label "org.opencontainers.image.description=Apache YuniKorn Web" \
--label "org.opencontainers.image.version=${VERSION}" \
--label "org.opencontainers.image.created=$(DATE)" \
--label "org.opencontainers.image.source=${IMAGE_SOURCE}" \
--label "org.opencontainers.image.url=${IMAGE_URL}" \
--label "org.opencontainers.image.revision=$(WEB_SHA)" \
--label "org.opencontainers.image.license=${LICENSE}" \
--label "org.opencontainers.image.documentation=${DOCS_URL}" \
--build-arg NODE_VERSION=${NODE_VERSION} \
${QUIET}

Expand Down

0 comments on commit 9eb0d0d

Please sign in to comment.