#!/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 }}
+ - name: {{ .Values.o2ims.serviceaccountname }}-registry-secret
{{- 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
namespace: orano2
o2ims:
- serviceaccountname: admin
+ serviceaccountname: admin-orano2
image:
repository: registry.local:9001/admin/o2imsdms
tag: 0.1.1
# By default this file is in the docker build directory,
# but the location can configured in the JJB template.
---
-tag: "1.0.0"
+tag: "2.0.0"