Merge "OAuth2 support"
[pti/o2.git] / tests / o2app-api-entry2.sh
1 #!/bin/sh
2
3 # pip install -e /src
4 # python /o2ims/entrypoints/resource_watcher.py
5
6 mkdir -p /etc/o2
7 cp -r /configs/* /etc/o2/
8 mkdir -p /src/o2common
9 cp -r /o2common/* /src/o2common
10 mkdir -p /src/o2ims
11 cp -r /o2ims/* /src/o2ims
12 mkdir -p /src/o2dms
13 cp -r /o2dms/* /src/o2dms
14 mkdir -p /src/o2app
15 cp -r /o2app/* /src/o2app
16 mkdir -p /src/helm_sdk
17 cp -r /helm_sdk/* /src/helm_sdk
18
19 pip install -e /src
20
21 if [ -e '/tests/my-server-cert.pem' ]
22 then
23 cp /tests/my-root-ca-cert.pem /configs/my-root-ca-cert.pem
24 cp /tests/my-server-cert.pem /configs/server.crt
25 cp /tests/my-server-key.pem /configs/server.key
26 gunicorn -b [::]:80 o2app.entrypoints.flask_application:app --certfile /configs/server.crt  --keyfile /configs/server.key --log-level debug
27 else
28 gunicorn -b [::]:80 o2app.entrypoints.flask_application:app --log-level debug
29 fi