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

27 lines
577 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
dms_cli uninstall xappkpimon ricxapp
docker build . -f Dockerfile -t 127.0.0.1:5000/kpimon_master:1.0.0 # --no-cache
docker push 127.0.0.1:5000/kpimon_master:1.0.0
# dms_cli onboard config.json schema.json
dms_cli install xappkpimon 1.0.0 ricxapp
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