1- IMG_VERSION ?= latest
2- IMG_REGISTRY ?= ghcr.io
3- IMG_ORG ?= kubeflow
4- IMG_NAME ?= model-registry/job/async-upload
5- IMG ?= $(IMG_REGISTRY ) /$(IMG_ORG ) /$(IMG_NAME ) :$(IMG_VERSION )
1+ JOB_IMG_VERSION ?= latest
2+ JOB_IMG_REGISTRY ?= ghcr.io
3+ JOB_IMG_ORG ?= kubeflow
4+ JOB_IMG_NAME ?= model-registry/job/async-upload
5+ JOB_IMG ?= $(JOB_IMG_REGISTRY ) /$(JOB_IMG_ORG ) /$(JOB_IMG_NAME ) :$(JOB_IMG_VERSION )
66BUILD_IMAGE ?= true # whether to build the MR server image
77CLUSTER_NAME ?= mr-e2e
88
99.PHONY : deploy-latest-mr
1010deploy-latest-mr :
1111 cd ../../ && \
1212 $(if $(filter true,$(BUILD_IMAGE ) ) ,\
13- IMG_VERSION =${IMG_VERSION } make image/build ARGS=" --load$( if ${DEV_BUILD} , --target dev-build) " && \
13+ JOB_IMG_VERSION =${JOB_IMG_VERSION } make image/build ARGS=" --load$( if ${DEV_BUILD} , --target dev-build) " && \
1414 ) \
1515 LOCAL=1 ./scripts/deploy_on_kind.sh
1616 kubectl port-forward -n kubeflow services/model-registry-service 8080:8080 & echo $$ ! >> .port-forwards.pid
@@ -29,8 +29,8 @@ deploy-local-registry:
2929
3030.PHONY : dev-load-image
3131dev-load-image :
32- docker buildx build --load -t $(IMG ) .
33- kind load docker-image $(IMG ) -n $(CLUSTER_NAME )
32+ docker buildx build --load -t $(JOB_IMG ) .
33+ kind load docker-image $(JOB_IMG ) -n $(CLUSTER_NAME )
3434
3535.PHONY : test
3636test :
@@ -73,7 +73,7 @@ test-integration-run:
7373 @echo " Ensuring all extras are installed..."
7474 poetry install --all-extras --with integration
7575 @echo " Running integration tests..."
76- CONTAINER_IMAGE_URI=$(IMG ) poetry run pytest --integration tests/integration/ -vs
76+ CONTAINER_IMAGE_URI=$(JOB_IMG ) poetry run pytest --integration tests/integration/ -vs
7777
7878.PHONY : install
7979install :
0 commit comments