Changes to scripts for including model mgmt service 03/12203/2
authorjosephthaliath <jo.thaliath@samsung.com>
Mon, 11 Dec 2023 07:15:53 +0000 (12:45 +0530)
committerjosephthaliath <jo.thaliath@samsung.com>
Mon, 11 Dec 2023 07:24:48 +0000 (12:54 +0530)
Issue-Id: AIMLFW-70

Change-Id: I276b9a4ab8ae9a77d9f939db027e5a14bb303bdb
Signed-off-by: josephthaliath <jo.thaliath@samsung.com>
bin/docker_image_build_local.sh
bin/docker_images_delete_local.sh
bin/install.sh
bin/install_traininghost.sh
bin/uninstall.sh

index 2c003f3..6736546 100755 (executable)
@@ -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
index 145bcc1..934717e 100755 (executable)
@@ -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 
index e711063..c1a9162 100755 (executable)
@@ -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
index 80fe32a..db35c0d 100755 (executable)
@@ -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
index ee5a603..6e1f708 100755 (executable)
@@ -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"