From 5e08b25f6c1b8b6ddc3dc6899c96001bc8d6c0e2 Mon Sep 17 00:00:00 2001 From: josephthaliath Date: Mon, 11 Dec 2023 12:45:53 +0530 Subject: [PATCH] Changes to scripts for including model mgmt service Issue-Id: AIMLFW-70 Change-Id: I276b9a4ab8ae9a77d9f939db027e5a14bb303bdb Signed-off-by: josephthaliath --- bin/docker_image_build_local.sh | 2 ++ bin/docker_images_delete_local.sh | 1 + bin/install.sh | 2 +- bin/install_traininghost.sh | 2 ++ bin/uninstall.sh | 2 +- 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/docker_image_build_local.sh b/bin/docker_image_build_local.sh index 2c003f3..6736546 100755 --- a/bin/docker_image_build_local.sh +++ b/bin/docker_image_build_local.sh @@ -23,6 +23,7 @@ git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/data-extraction" git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/athp/tps/kubeflow-adapter" git clone "https://gerrit.o-ran-sc.org/r/portal/aiml-dashboard" git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/aihp/ips/kserve-adapter" +git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/awmf/modelmgmtservice" docker build -f tm/Dockerfile -t tm tm/. docker build -f data-extraction/Dockerfile -t data-extraction data-extraction/. @@ -30,6 +31,7 @@ docker build -f kubeflow-adapter/Dockerfile -t kfadapter kubeflow-adapter/. docker build -f aiml-dashboard/Dockerfile -t aiml-dashboard aiml-dashboard/. docker build -f aiml-dashboard/kf-pipelines/Dockerfile -t aiml-notebook aiml-dashboard/kf-pipelines/. docker build -f kserve-adapter/Dockerfile -t kserve-adapter:1.0.0 kserve-adapter/. +docker build -f modelmgmtservice/Dockerfile -t modelmgmtservice:1.0.0 modelmgmtservice/. cd - rm -Rf /tmp/gerrit_code diff --git a/bin/docker_images_delete_local.sh b/bin/docker_images_delete_local.sh index 145bcc1..934717e 100755 --- a/bin/docker_images_delete_local.sh +++ b/bin/docker_images_delete_local.sh @@ -21,3 +21,4 @@ docker rmi kfadapter docker rmi aiml-dashboard docker rmi aiml-notebook docker rmi kserve-adapter:1.0.0 +docker rmi modelmgmtservice:1.0.0 diff --git a/bin/install.sh b/bin/install.sh index e711063..c1a9162 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -71,7 +71,7 @@ if [ -z "$HAS_COMMON_PACKAGE" ];then exit 1 fi -COMPONENTS="tm data-extraction kfadapter aiml-dashboard aiml-notebook" +COMPONENTS="tm data-extraction kfadapter aiml-dashboard aiml-notebook modelmgmtservice" for component in $COMPONENTS; do helm dep up helm/$component diff --git a/bin/install_traininghost.sh b/bin/install_traininghost.sh index 80fe32a..db35c0d 100755 --- a/bin/install_traininghost.sh +++ b/bin/install_traininghost.sh @@ -37,6 +37,8 @@ bin/build_default_pipeline_image.sh tools/leofs/bin/install_leofs.sh tools/kubeflow/bin/install_kubeflow.sh kubectl create namespace traininghost +#copy of secrets to traininghost namespace to enable modelmanagement service to access leofs +kubectl get secret leofs-secret --namespace=kubeflow -o yaml | sed -e 's/kubeflow/traininghost/g' | kubectl apply -f - bin/install_rolebindings.sh bin/install_databases.sh diff --git a/bin/uninstall.sh b/bin/uninstall.sh index ee5a603..6e1f708 100755 --- a/bin/uninstall.sh +++ b/bin/uninstall.sh @@ -16,7 +16,7 @@ # # ================================================================================== -COMPONENTS="tm data-extraction kfadapter aiml-dashboard aiml-notebook" +COMPONENTS="tm data-extraction kfadapter aiml-dashboard aiml-notebook modelmgmtservice" for component in $COMPONENTS; do echo "Uninstalling $component"