X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fdata%2Fprepare_data.sh;h=d605efb703a692121256aa6aa6697025232c0600;hb=refs%2Fchanges%2F76%2F5676%2F1;hp=e1b6a5728bce2e90570c093b6d36837990bcb13a;hpb=f183066766c133065ecfaa0659ca3dfcd2fe1ac1;p=it%2Fdep.git diff --git a/nonrtric/data/prepare_data.sh b/nonrtric/data/prepare_data.sh index e1b6a572..d605efb7 100755 --- a/nonrtric/data/prepare_data.sh +++ b/nonrtric/data/prepare_data.sh @@ -19,13 +19,16 @@ # This script is populating some data into nonrtric for demo/test purpose. # First this script copies data/ folder into one of the rics, in below case a1-sim-osc-0. -# Then from the ric, run populate_data.sh. -# populate_data.sh creats policy type/ service/ polocies. +# Then from the ric, run populate_policy_data.sh and populate_enrichment_data.sh. +# populate_policy_data.sh creates policy-types, service, and policies. +# populate_enrichment_data.sh creates EiProducer, EiType, and EiJob. # # Why we run the scripts in the ric, not from the host? # Because a1-simulators(ric) are deployed in statefulset, # they are not exposed to outside the k8s cluster. # And we must create policy type into the ric first. +# Similarly, the enrichmentservice is not exposed outside the k8s cluster, +# hence the commands for populating enrichment data need to be run from within the cluster. kubectl -n nonrtric cp run_in_k8s a1-sim-osc-0:/usr/src/app/ -kubectl -n nonrtric exec -it a1-sim-osc-0 -- bash -c 'cd run_in_k8s/ && ./populate_data.sh' \ No newline at end of file +kubectl -n nonrtric exec -it a1-sim-osc-0 -- bash -c 'cd run_in_k8s/ && ./populate_policy_data.sh && ./populate_enrichment_data.sh' \ No newline at end of file