This repository has been archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
batect.yml
119 lines (109 loc) · 3.28 KB
/
batect.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
containers:
dongtai-mysql:
image: dongtai/dongtai-mysql-unittest:latest
image_pull_policy: Always
dongtai-redis:
image: dongtai/dongtai-redis:latest
image_pull_policy: Always
dongtai-webapi:
build_directory: .
dockerfile: ./DockerfileDev
environment:
DOC: ${WEBAPI_DOC:-TRUE}
debug: ${WEBAPI_debug:-true}
SAVEEYE: ${WEBAPI_SAVEEYE:-TRUE}
REQUESTLOG: ${WEBAPI_REQUESTLOG:-TRUE}
CPROFILE: ${WEBAPI_CPROFILE:-TRUE}
PYTHONAGENT: ${WEBAPI_PYTHON_AGENT:-FALSE}
PROJECT_NAME: ${WEBAPI_PROJECT_NAME:-LocalWEBAPI}
PROJECT_VERSION: ${WEBAPI_PROJECT_VERSION:-v1.0}
LOG_PATH: ${WEBAPI_LOG_PATH:-/tmp/dongtai-agent-python.log}
DONGTAI_IAST_BASE_URL: ${DONGTAI_IAST_BASE_URL:-https://iast.io/openapi}
DONGTAI_AGNET_TOKEN: ${DONGTAI_AGNET_TOKEN:-79798299b48839c84886d728958a8f708e119868}
volumes:
- .:/opt/dongtai/webapi/
dongtai-web:
image: dongtai/dongtai-web:latest
image_pull_policy: Always
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
dongtai-openapi:
image: dongtai/dongtai-openapi:latest
image_pull_policy: Always
volumes:
- ./conf/config.ini:/opt/dongtai/openapi/conf/config.ini
dongtai-engine:
image: dongtai/dongtai-engine:latest
image_pull_policy: Always
volumes:
- ./conf/config.ini:/opt/dongtai/engine/conf/config.ini
dongtai-engine-task:
image: dongtai/dongtai-engine:latest
image_pull_policy: Always
command: /opt/dongtai/engine/docker/entrypoint.sh task
volumes:
- ./conf/config.ini:/opt/dongtai/engine/conf/config.ini
dependencies:
- dongtai-engine
tasks:
serve:
description: Serve the webapi application standingalone
run:
container: dongtai-webapi
entrypoint: /opt/dongtai/webapi/.batect/agent_deco.sh /opt/dongtai/webapi/.batect/manage_run_server.sh
ports:
- "8000:8000"
group: serve
makemessages:
description: makemessages about i18n
run:
container: dongtai-webapi
entrypoint: python manage.py makemessages -l zh -l en
ports:
- "8000:8000"
group: tool
serve-with-db:
description: Serve the webapi application with db
run:
container: dongtai-webapi
entrypoint: /opt/dongtai/webapi/.batect/agent_deco.sh /opt/dongtai/webapi/.batect/manage_run_server.sh
ports:
- "8000:8000"
dependencies:
- dongtai-mysql
customise:
dongtai-mysql:
ports:
- "33060:3306"
group: serve
test:
description: run webapi unittest
run:
container: dongtai-webapi
entrypoint: /opt/dongtai/webapi/.batect/agent_deco.sh /opt/dongtai/webapi/.batect/manage_test.sh
dependencies:
- dongtai-mysql
group: test
integration-test-web:
description: integration with web front-end
run:
container: dongtai-web
dependencies:
- dongtai-mysql
- dongtai-webapi
- dongtai-openapi
group: integration
integration-test-all:
description: integration with all components
run:
container: dongtai-web
dependencies:
- dongtai-mysql
- dongtai-webapi
- dongtai-openapi
- dongtai-redis
- dongtai-engine
- dongtai-engine-task
group: integration