This repository has been archived by the owner on Apr 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
batect.yml
105 lines (95 loc) · 2.85 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
containers:
dongtai-mysql:
image: dongtai/dongtai-mysql:latest
image_pull_policy: Always
dongtai-redis:
image: dongtai/dongtai-redis:latest
image_pull_policy: Always
dongtai-webapi:
image: dongtai/dongtai-webapi:latest
image_pull_policy: Always
dongtai-web:
image: dongtai/dongtai-web:latest
image_pull_policy: Always
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
dongtai-openapi:
dockerfile: ./DockerfileDev
build_directory: .
volumes:
- .:/opt/dongtai/openapi/
environment:
debug: ${OPENAPI_debug:-true}
PYTHONAGENT: ${OPENAPI_PYTHON_AGENT:-FALSE}
PROJECT_NAME: ${OPENAPI_PROJECT_NAME:-LocalOPENAPI}
PROJECT_VERSION: ${OPENAPI_PROJECT_VERSION:-v1.0}
LOG_PATH: ${OPENAPI_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}
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 openapi application standingalone
run:
container: dongtai-openapi
entrypoint: /opt/dongtai/openapi/.batect/agent_deco.sh /opt/dongtai/openapi/.batect/manage_run_server.sh
ports:
- "8000:8000"
group: serve
serve-with-db:
description: Serve the openapi application with db
run:
container: dongtai-openapi
entrypoint: /opt/dongtai/openapi/.batect/agent_deco.sh /opt/dongtai/openapi/.batect/manage_run_server.sh
ports:
- "8000:8000"
dependencies:
- dongtai-mysql
customise:
dongtai-mysql:
ports:
- "33060:3306"
group: serve
test:
description: run openapi unittest
run:
container: dongtai-openapi
entrypoint: /opt/dongtai/openapi/.batect/agent_deco.sh /opt/dongtai/openapi/.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