Skip to content

Commit a57d38a

Browse files
committed
Build and use driver / launcher too!
1 parent 9ec3092 commit a57d38a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

scripts/deploy/github/build-images.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,19 @@ then
4646
exit $EXIT_CODE
4747
fi
4848

49+
docker build -q -t "${REGISTRY}/driver:${TAG}" -f backend/Dockerfile.driver . && docker push "${REGISTRY}/driver:${TAG}" || EXIT_CODE=$?
50+
if [[ $EXIT_CODE -ne 0 ]]
51+
then
52+
echo "Failed to build driver image."
53+
exit $EXIT_CODE
54+
fi
55+
56+
docker build -q -t "${REGISTRY}/launcher:${TAG}" -f backend/Dockerfile.launcher . && docker push "${REGISTRY}/launcher:${TAG}" || EXIT_CODE=$?
57+
if [[ $EXIT_CODE -ne 0 ]]
58+
then
59+
echo "Failed to build launcher image."
60+
exit $EXIT_CODE
61+
fi
4962

5063
# clean up intermittent build caches to free up disk space
5164
docker system prune -a -f

scripts/deploy/github/deploy-kfp.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ kubectl patch deployment.apps/ml-pipeline-persistenceagent -p '{"spec": {"templa
4949
# Patch scheduled workflow
5050
kubectl patch deployment.apps/ml-pipeline-scheduledworkflow -p '{"spec": {"template": {"spec": {"containers": [{"name": "ml-pipeline-scheduledworkflow", "image": "kind-registry:5000/scheduledworkflow"}]}}}}' -n kubeflow
5151

52+
# Update environment variables to override driver / launcher
53+
kubectl set env deployments/ml-pipeline V2_DRIVER_IMAGE=kind-registry:5000/driver -n kubeflow
54+
kubectl set env deployments/ml-pipeline V2_LAUNCHER_IMAGE=kind-registry:5000/launcher -n kubeflow
55+
5256
# Check if all pods are running - (10 minutes)
5357
wait_for_pods || EXIT_CODE=$?
5458
if [[ $EXIT_CODE -ne 0 ]]

0 commit comments

Comments
 (0)