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

27 lines
597 B
Bash
Executable File

#!/bin/bash
#set -x
export CHART_REPO_URL=http://0.0.0.0:8090
dms_cli uninstall xappkpimon_ddos ricxapp
docker build . -f Dockerfile -t 127.0.0.1:5000/kpimon_master_ddos:1.0.0 # --no-cache
docker push 127.0.0.1:5000/kpimon_master_ddos:1.0.0
# dms_cli onboard config.json schema.json
dms_cli install xappkpimon_ddos 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")
echo kubectl exec -ti -n ricxapp $pod_name bash
# To run the kpimon
# ./kpimon -f /opt/ric/config/config-file.json