#!/bin/bash
# pull latest code to debug
-cd /root/
-git clone "https://gerrit.o-ran-sc.org/r/pti/o2"
+# cd /root/
+# git clone "https://gerrit.o-ran-sc.org/r/pti/o2"
# cd o2
# git pull https://gerrit.o-ran-sc.org/r/pti/o2 refs/changes/85/7085/5
# pip install retry
-pip install -e /root/o2
-
+# pip install -e /root/o2
+pip install -e /src
cat <<EOF>>/etc/hosts
127.0.0.1 api
#!/bin/bash
# pull latest code to debug
-cd /root/
-git clone "https://gerrit.o-ran-sc.org/r/pti/o2"
-pip install -e /root/o2
+# cd /root/
+# git clone "https://gerrit.o-ran-sc.org/r/pti/o2"
+# pip install -e /root/o2
-python /root/o2/o2app/entrypoints/redis_eventconsumer.py
+# python /root/o2/o2app/entrypoints/redis_eventconsumer.py
+python /src/o2app/entrypoints/redis_eventconsumer.py
sleep infinity
#!/bin/bash
# pull latest code to debug
-cd /root/
-git clone "https://gerrit.o-ran-sc.org/r/pti/o2"
-pip install -e /root/o2
+# cd /root/
+# git clone "https://gerrit.o-ran-sc.org/r/pti/o2"
+# pip install -e /root/o2
-python /root/o2/o2app/entrypoints/resource_watcher.py
+# python /root/o2/o2app/entrypoints/resource_watcher.py
+python /src/o2app/entrypoints/resource_watcher.py
sleep infinity
app: o2api
spec:
serviceAccountName: {{ .Values.o2ims.serviceaccountname }}
- imagePullSecrets:
- - name: {{ .Values.o2ims.imagePullSecrets }}
+ # imagePullSecrets:
+ # - name: {{ .Values.o2ims.imagePullSecrets }}
{{- if .Values.o2ims.affinity }}
affinity:
{{ toYaml .Values.o2ims.affinity | indent 8 }}
- name: DB_PASSWORD
value: o2ims123
- name: FLASK_APP
- value: /root/o2/o2app/entrypoints/flask_application.py
+ value: /src/o2app/entrypoints/flask_application.py
- name: FLASK_DEBUG
value: {{ .Values.o2ims.logginglevel }}
- name: LOGGING_CONFIG_LEVEL