This is an automated email from the ASF dual-hosted git repository.
ccondit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-web.git
The following commit(s) were added to refs/heads/master by this push:
new 3922c51 [YUNIKORN-2446] Add OCI annotations to public docker images
(#199)
3922c51 is described below
commit 3922c51d7bc06c548317712ed4ac93cec9cbb7da
Author: ryankert <[email protected]>
AuthorDate: Tue Aug 13 10:37:42 2024 -0500
[YUNIKORN-2446] Add OCI annotations to public docker images (#199)
Closes: #199
Signed-off-by: Craig Condit <[email protected]>
---
Makefile | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/Makefile b/Makefile
index 6757b0f..8dbc072 100644
--- a/Makefile
+++ b/Makefile
@@ -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)
@@ -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}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]