ns-o-ran-scp-ric-app-kpimon/launch_app.sh

27 lines
597 B
Bash
Raw Normal View History

2023-05-04 21:39:36 +02:00
#!/bin/bash
#set -x
export CHART_REPO_URL=http://0.0.0.0:8090
2024-03-27 15:42:43 +01:00
dms_cli uninstall xappkpimon_ddos ricxapp
2023-05-04 21:39:36 +02:00
2024-03-27 15:42:43 +01:00
docker build . -f Dockerfile -t 127.0.0.1:5000/kpimon_master_ddos:1.0.0 # --no-cache
2023-05-04 21:39:36 +02:00
2024-03-27 15:42:43 +01:00
docker push 127.0.0.1:5000/kpimon_master_ddos:1.0.0
2023-05-04 21:39:36 +02:00
# dms_cli onboard config.json schema.json
2024-03-27 15:42:43 +01:00
dms_cli install xappkpimon_ddos 1.0.0 ricxapp
2023-05-04 21:39:36 +02:00
echo "Wait for 10 seconds"
sleep 10
unset $pod_name
pod_name=$(kubectl get pods -n ricxapp --no-headers -o custom-columns=":metadata.name")
2023-05-04 23:12:49 +02:00
echo kubectl exec -ti -n ricxapp $pod_name bash
2023-05-04 23:34:49 +02:00
# To run the kpimon
2023-05-04 23:12:49 +02:00
# ./kpimon -f /opt/ric/config/config-file.json