Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add docs for pti o2 service
[pti/o2.git]
/
docker-compose.yml
diff --git
a/docker-compose.yml
b/docker-compose.yml
index
efb52cf
..
477441a
100644
(file)
--- a/
docker-compose.yml
+++ b/
docker-compose.yml
@@
-6,7
+6,7
@@
services:
build:
context: .
dockerfile: Dockerfile.localtest
build:
context: .
dockerfile: Dockerfile.localtest
- image: o2imsdms
-image
+ image: o2imsdms
depends_on:
- postgres
- redis
depends_on:
- postgres
- redis
@@
-18,17
+18,24
@@
services:
- OS_AUTH_URL=${OS_AUTH_URL}
- OS_USERNAME=${OS_USERNAME}
- OS_PASSWORD=${OS_PASSWORD}
- OS_AUTH_URL=${OS_AUTH_URL}
- OS_USERNAME=${OS_USERNAME}
- OS_PASSWORD=${OS_PASSWORD}
+ - K8S_KUBECONFIG=${K8S_KUBECONFIG}
+ - K8S_APISERVER=${K8S_APISERVER}
+ - K8S_TOKEN=${K8S_TOKEN}
+ - LOGGING_CONFIG_LEVEL=DEBUG
volumes:
volumes:
+ - ./configs:/configs
- ./o2ims:/o2ims
- ./o2dms:/o2dms
- ./o2common:/o2common
- ./o2ims:/o2ims
- ./o2dms:/o2dms
- ./o2common:/o2common
+ - ./o2app:/o2app
+ - ./helm_sdk:/helm_sdk
- ./tests:/tests
entrypoint:
- /bin/sh
- ./tests:/tests
entrypoint:
- /bin/sh
- - /
o2ims/entrypoints/o2ims
-redis-entry.sh
+ - /
tests/o2app
-redis-entry.sh
api:
api:
- image: o2imsdms
-image
+ image: o2imsdms
depends_on:
- redis_pubsub
environment:
depends_on:
- redis_pubsub
environment:
@@
-37,22
+44,24
@@
services:
- API_HOST=api
- REDIS_HOST=redis
- PYTHONDONTWRITEBYTECODE=1
- API_HOST=api
- REDIS_HOST=redis
- PYTHONDONTWRITEBYTECODE=1
- - FLASK_APP=/o2
ims
/entrypoints/flask_application.py
+ - FLASK_APP=/o2
app
/entrypoints/flask_application.py
- FLASK_DEBUG=1
- PYTHONUNBUFFERED=1
- OS_AUTH_URL=${OS_AUTH_URL}
- OS_USERNAME=${OS_USERNAME}
- OS_PASSWORD=${OS_PASSWORD}
- FLASK_DEBUG=1
- PYTHONUNBUFFERED=1
- OS_AUTH_URL=${OS_AUTH_URL}
- OS_USERNAME=${OS_USERNAME}
- OS_PASSWORD=${OS_PASSWORD}
+ - LOGGING_CONFIG_LEVEL=DEBUG
volumes:
volumes:
+ - ./configs:/configs
- ./o2ims:/o2ims
- ./o2dms:/o2dms
- ./o2common:/o2common
- ./o2ims:/o2ims
- ./o2dms:/o2dms
- ./o2common:/o2common
+ - ./o2app:/o2app
+ - ./helm_sdk:/helm_sdk
- ./tests:/tests
entrypoint:
- ./tests:/tests
entrypoint:
- - flask
- - run
- - --host=0.0.0.0
- - --port=80
+ - /bin/sh
+ - /tests/o2app-api-entry.sh
ports:
- "5005:80"
ports:
- "5005:80"
@@
-60,10
+69,9
@@
services:
build:
context: .
dockerfile: Dockerfile.localtest
build:
context: .
dockerfile: Dockerfile.localtest
- image: o2imsdms
-image
+ image: o2imsdms
depends_on:
depends_on:
- - postgres
- - redis
+ - redis_pubsub
environment:
- DB_HOST=postgres
- DB_PASSWORD=o2ims123
environment:
- DB_HOST=postgres
- DB_PASSWORD=o2ims123
@@
-72,14
+80,18
@@
services:
- OS_AUTH_URL=${OS_AUTH_URL}
- OS_USERNAME=${OS_USERNAME}
- OS_PASSWORD=${OS_PASSWORD}
- OS_AUTH_URL=${OS_AUTH_URL}
- OS_USERNAME=${OS_USERNAME}
- OS_PASSWORD=${OS_PASSWORD}
+ - LOGGING_CONFIG_LEVEL=DEBUG
volumes:
volumes:
+ - ./configs:/configs
- ./o2ims:/o2ims
- ./o2dms:/o2dms
- ./o2common:/o2common
- ./o2ims:/o2ims
- ./o2dms:/o2dms
- ./o2common:/o2common
+ - ./o2app:/o2app
+ - ./helm_sdk:/helm_sdk
- ./tests:/tests
entrypoint:
- /bin/sh
- ./tests:/tests
entrypoint:
- /bin/sh
- - /
o2ims/entrypoints/o2ims
-watcher-entry.sh
+ - /
tests/o2app
-watcher-entry.sh
postgres:
image: postgres:9.6
postgres:
image: postgres:9.6