Skip to content

Commit

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

Signed-off-by: Craig Condit <[email protected]>
  • Loading branch information
ryankert01 authored and craigcondit committed Aug 13, 2024
1 parent 286abb6 commit eed4ea1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ TEST_SERVER_BINARY=web-test-server
TOOLS_DIR=tools
REPO=github.com/apache/yunikorn-k8shim/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):$(GO_EXE_PATH):$(PATH)

Expand Down Expand Up @@ -501,6 +506,15 @@ sched_image: $(OUTPUT)/third-party-licenses.md scheduler docker/scheduler
--label "yunikorn-k8shim-revision=${SHIM_SHA}" \
--label "BuildTimeStamp=${DATE}" \
--label "Version=${VERSION}" \
--label "org.opencontainers.image.title=${SCHEDULER_BINARY}" \
--label "org.opencontainers.image.description=Apache YuniKorn Scheduler" \
--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=$(SHIM_SHA)" \
--label "org.opencontainers.image.license=${LICENSE}" \
--label "org.opencontainers.image.documentation=${DOCS_URL}" \
${QUIET}

# Build a plugin image based on the production ready version
Expand All @@ -522,6 +536,15 @@ plugin_image: $(OUTPUT)/third-party-licenses.md plugin docker/plugin conf/schedu
--label "yunikorn-k8shim-revision=${SHIM_SHA}" \
--label "BuildTimeStamp=${DATE}" \
--label "Version=${VERSION}" \
--label "org.opencontainers.image.title=${PLUGIN_BINARY}" \
--label "org.opencontainers.image.description=Apache YuniKorn Scheduler (Plugin)" \
--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=$(SHIM_SHA)" \
--label "org.opencontainers.image.license=${LICENSE}" \
--label "org.opencontainers.image.documentation=${DOCS_URL}" \
${QUIET}

# Build admission controller binary in a production ready version
Expand Down Expand Up @@ -570,6 +593,15 @@ adm_image: $(OUTPUT)/third-party-licenses.md admission docker/admission
--label "yunikorn-k8shim-revision=${SHIM_SHA}" \
--label "BuildTimeStamp=${DATE}" \
--label "Version=${VERSION}" \
--label "org.opencontainers.image.title=${ADMISSION_CONTROLLER_BINARY}" \
--label "org.opencontainers.image.description=Apache YuniKorn Admission Controller" \
--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=$(SHIM_SHA)" \
--label "org.opencontainers.image.license=${LICENSE}" \
--label "org.opencontainers.image.documentation=${DOCS_URL}" \
${QUIET}

# Build all images based on the production ready version
Expand Down

0 comments on commit eed4ea1

Please sign in to comment.