beef up the AI/ML framework tests by adding InfluxDB as data source and populate...
[it/test.git] / XTesting / aiml-fw / deploy.sh
1 #!/bin/bash
2 set -x
3
4 # pull the AI/ML framework code base
5 rm -rf /aimlfw-dep
6 git clone "https://gerrit.o-ran-sc.org/r/aiml-fw/aimlfw-dep" /aimlfw-dep
7 cd /aimlfw-dep
8
9 bin/install_traininghost.sh 2>&1 | tee /tmp/install-thost-`echo $RANDOM`.log
10
11 # deploy InfluxDB as the data lake
12 helm repo add bitnami https://charts.bitnami.com/bitnami
13 helm install my-release bitnami/influxdb
14
15 # install the dependencies for populating InfluxDB
16 pip3 install pandas
17 pip3 install influxdb-client
18
19 # populate the sample data in InfluxDB as source for training
20 cd /root
21 python3 insert.py