forked from DataDog/dd-trace-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
291 lines (271 loc) · 9.96 KB
/
docker-compose.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
version: '3.6'
x-aliases:
- &base_php_service
ulimits:
core: 99999999999
working_dir: '/home/circleci/app'
stdin_open: true
tty: true
volumes:
- .:/home/circleci/app
- .composer:/home/circleci/.composer
- .scenarios.lock:/home/circleci/app/.scenarios.lock
tmpfs: [ '/home/circleci/app/tmp:uid=3434,gid=3434,exec' ]
depends_on:
- agent
- ddagent_integration
- request-replayer
- elasticsearch2_integration
- httpbin_integration
- redis_integration
- mongodb_integration
- mysql_integration
- memcached_integration
environment:
- REDIS_HOSTNAME=redis_integration
- DDAGENT_HOSTNAME=ddagent_integration
- COMPOSER_MEMORY_LIMIT=-1
- PHP_IDE_CONFIG=serverName=docker
cap_add:
- SYS_PTRACE
- &base_54_service
<<: *base_php_service
volumes:
- .:/home/circleci/app
- ./tmp/docker/54/vendor:/home/circleci/app/vendor
- .composer:/home/circleci/.composer
- .scenarios.lock:/home/circleci/app/.scenarios.lock
- &base_56_service
<<: *base_php_service
volumes:
- .:/home/circleci/app
- ./tmp/docker/56/vendor:/home/circleci/app/vendor
- .composer:/home/circleci/.composer
- .scenarios.lock:/home/circleci/app/.scenarios.lock
services:
'5.4':
<<: *base_php_service
image: datadog/dd-trace-ci:php-dev-5.4
build:
context: .
dockerfile: dockerfiles/development/Dockerfile_54
'5.4-debug-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-5.4-debug-buster' }
'5.4-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-5.4-debug' }
'5.5': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-5.5' }
'5.5-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-5.5-debug' }
'5.6':
<<: *base_php_service
image: datadog/dd-trace-ci:php-dev-5.6
build:
context: .
dockerfile: dockerfiles/development/Dockerfile_56
'5.6-original': { <<: *base_56_service, image: 'circleci/php:5.6-zts' }
'5.6-debug-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-5.6-debug-buster' }
'5.6-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-5.6-debug' }
'5.6-zts': { <<: *base_56_service, image: 'datadog/docker-library:ddtrace_alpine_php-5.6-zts' }
'7.0':
<<: *base_php_service
image: datadog/dd-trace-ci:php-dev-7.0
build:
context: .
dockerfile: dockerfiles/development/Dockerfile_70
target: final
args:
PHP_MAJOR_MINOR: '7.0'
MCRYPT_PACKAGE: mcrypt
'7.0-centos': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_centos_6_php_7_0' }
'7.0-debug-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.0-debug-buster' }
'7.0-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.0-debug' }
'7.0-zts': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.0-zts' }
'7.1':
<<: *base_php_service
image: datadog/dd-trace-ci:php-dev-7.1
build:
context: .
dockerfile: dockerfiles/development/Dockerfile_71_72_73
target: final
args:
PHP_MAJOR_MINOR: '7.1'
MCRYPT_PACKAGE: mcrypt-1.0.0
'7.1-debug-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.1-debug-buster' }
'7.1-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.1-debug' }
'7.1-zts': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.1-zts' }
'7.1-centos6': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_centos_6_php_7_1' }
'7.1-centos-compiled': { <<: *base_php_service, build: 'dockerfiles/verify_packages/centos7-compiled' }
'7.2':
<<: *base_php_service
image: datadog/dd-trace-ci:php-dev-7.2
build:
context: .
dockerfile: dockerfiles/development/Dockerfile_71_72_73
target: final
args:
PHP_MAJOR_MINOR: '7.2'
MCRYPT_PACKAGE: mcrypt-1.0.3
'7.2-debug-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.2-debug-buster' }
'7.2-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.2-debug' }
'7.2-zts': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.2-zts' }
'7.3':
<<: *base_php_service
image: datadog/dd-trace-ci:php-dev-7.3
build:
context: .
dockerfile: dockerfiles/development/Dockerfile_71_72_73
target: final
args:
PHP_MAJOR_MINOR: '7.3'
MCRYPT_PACKAGE: mcrypt-1.0.3
'7.3-debug-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.3-debug-buster' }
'7.3-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.3-debug' }
'7.3-zts-debug': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.3-zts-debug' }
'7.3-zts': { <<: *base_php_service, image: 'datadog/docker-library:ddtrace_alpine_php-7.3-zts' }
'7.4-debug-buster': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.4-debug-buster' }
'7.4-debug': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.4-debug-alpine-3.11' }
'7.4-debug-asan': { <<: *base_php_service, image: 'datadog/dd-trace-ci:php-7.4-debug-asan-buster' }
'ubuntu-16.04-7.1': { <<: *base_php_service, build: 'dockerfiles/ubuntu-16.04-php-7.1' }
'ubuntu-18.04-7.2': { <<: *base_php_service, build: 'dockerfiles/ubuntu-18.04-php-7.2' }
'fpm': { <<: *base_php_service, image: 'circleci/ruby:2.5', depends_on: [] }
mysql_integration:
image: datadog/dd-trace-ci:php-mysql-dev-5.6
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=test
- MYSQL_PASSWORD=test
- MYSQL_USER=test
- MYSQL_DATABASE=test
elasticsearch2_integration:
image: "elasticsearch:2"
mongodb_integration:
image: "circleci/mongo:4.0"
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=test
- MONGO_INITDB_ROOT_PASSWORD=test
redis_integration:
image: "circleci/redis:4.0-alpine"
memcached_integration:
image: "memcached:1.5-alpine"
httpbin_integration:
image: kennethreitz/httpbin
ddagent_integration:
image: datadog/agent:latest
healthcheck:
test: ["CMD", "curl", "-f", "-X", "HEAD", "http://localhost:8126"]
interval: 10s
timeout: 2s
retries: 2
environment:
- DD_APM_ENABLED=true
- DD_BIND_HOST=0.0.0.0
- DD_API_KEY=invalid_key_but_its_ok
ports:
- "8126:8126"
request-replayer:
image: datadog/dd-trace-ci:php-request-replayer
agent:
image: datadog/agent:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc/:/host/proc/:ro
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
environment:
- DD_API_KEY=${DATADOG_API_KEY}
- DD_APM_ENABLED=true
- DD_DOGSTATSD_NON_LOCAL_TRAFFIC=1
apache_56_server:
build:
context: .
dockerfile: tests/dockerfiles/Dockerfile_php56_apache
ports:
- 4134:80
environment:
APACHE_RUN_DIR: /var/run/apache2
APACHE_RUN_USER: www-data
APACHE_RUN_GROUP: www-data
APACHE_LOG_DIR: /var/log/apache2
DD_TRACE_DEBUG: 'true'
DD_AGENT_HOST: agent
depends_on:
- agent
volumes:
- ./tests/Frameworks:/var/www
- ./tests/dockerfiles/symfony_34_virtualhost.conf:/etc/apache2/sites-available/000-default.conf
- ./:/var/dd-trace-php
################################################################
# Images used for performance overhead calculation
################################################################
overhead-nginx:
build:
context: .
dockerfile: ./tests/overhead/dockerfiles/Dockerfile_nginx
ports:
# no tracer
- 8886:8886
# current master on GitHub
- 8887:8887
# current local head
- 8888:8888
# a specific release, set DD_TRACER_LIBRARY_VERSION=X.Y.Z in service
# 'overhead-php-fpm-release'
- 8889:8889
depends_on:
- overhead-php-fpm-notracer
- overhead-php-fpm-master
- overhead-php-fpm-release
- overhead-php-fpm-head
overhead-php-fpm-notracer:
build:
context: .
dockerfile: ./tests/overhead/dockerfiles/Dockerfile_72_fpm_Laravel57
target: notracer
depends_on:
- agent
volumes:
- ./tests/overhead/callgrind-files:/var/www/callgrind-files
overhead-php-fpm-release:
build:
context: .
dockerfile: ./tests/overhead/dockerfiles/Dockerfile_72_fpm_Laravel57
target: release
args:
- DD_TRACE_LIBRARY_VERSION=${DD_TRACE_LIBRARY_VERSION:-0.37.1}
depends_on:
- agent
volumes:
- ./tests/overhead/callgrind-files:/var/www/callgrind-files
overhead-php-fpm-master:
build:
context: .
dockerfile: ./tests/overhead/dockerfiles/Dockerfile_72_fpm_Laravel57
target: master
depends_on:
- agent
volumes:
- ./tests/overhead/callgrind-files:/var/www/callgrind-files
overhead-php-fpm-head:
build:
context: .
dockerfile: ./tests/overhead/dockerfiles/Dockerfile_72_fpm_Laravel57
target: head
depends_on:
- agent
volumes:
- ./tests/overhead/callgrind-files:/var/www/callgrind-files
- ./:/dd-trace-php
overhead-agent:
image: datadog/agent:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc/:/host/proc/:ro
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
- ./tests/overhead/dockerfiles/php-fpm-agent-integration.yaml:/etc/datadog-agent/conf.d/php_fpm.d/conf.yaml
environment:
- DD_API_KEY=${DATADOG_API_KEY}
- DD_APM_ENABLED=true
- DD_APM_NON_LOCAL_TRAFFIC=true
- DD_LOG_LEVEL=debug
################################################################
# End of images used for performance overhead calculation
################################################################