/
docker-compose.yml
119 lines (117 loc) · 3.42 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
services:
# MRI
datadog-ci-2.7:
image: ghcr.io/datadog/dd-trace-rb/ruby:2.7.6-dd
command: /bin/bash
env_file: ./.env
environment: &common-environment
BUNDLE_GEMFILE: /app/Gemfile-2.7
DD_AGENT_HOST: ddagent
TEST_DATADOG_INTEGRATION: 1
DDTRACE_CI: true
stdin_open: true
tty: true
volumes:
- .:/app
- extension-build-tmp:/app/tmp
- bundle-2.7:/usr/local/bundle
- "ddagent_var_run:${TEST_DDAGENT_VAR_RUN}"
datadog-ci-3.0:
image: ghcr.io/datadog/dd-trace-rb/ruby:3.0.4-dd
command: /bin/bash
env_file: ./.env
environment: &common-environment-3x
BUNDLE_GEMFILE: /app/Gemfile-3.0
DD_AGENT_HOST: ddagent
stdin_open: true
tty: true
volumes:
- .:/app
- extension-build-tmp:/app/tmp
- bundle-3.0:/usr/local/bundle
- "ddagent_var_run:${TEST_DDAGENT_VAR_RUN}"
datadog-ci-3.1:
image: ghcr.io/datadog/dd-trace-rb/ruby:3.1.2-dd
command: /bin/bash
env_file: ./.env
environment:
<<: *common-environment-3x
BUNDLE_GEMFILE: /app/Gemfile-3.1
stdin_open: true
tty: true
volumes:
- .:/app
- extension-build-tmp:/app/tmp
- bundle-3.1:/usr/local/bundle
- "ddagent_var_run:${TEST_DDAGENT_VAR_RUN}"
datadog-ci-3.2:
image: ghcr.io/datadog/dd-trace-rb/ruby:3.2.0-dd
command: /bin/bash
env_file: ./.env
environment:
<<: *common-environment-3x
BUNDLE_GEMFILE: /app/Gemfile-3.2
stdin_open: true
tty: true
volumes:
- .:/app
- extension-build-tmp:/app/tmp
- bundle-3.2:/usr/local/bundle
- "ddagent_var_run:${TEST_DDAGENT_VAR_RUN}"
datadog-ci-3.3:
image: ghcr.io/datadog/dd-trace-rb/ruby:3.3.0-dd
command: /bin/bash
env_file: ./.env
environment:
<<: *common-environment-3x
BUNDLE_GEMFILE: /app/Gemfile-3.3
stdin_open: true
tty: true
volumes:
- .:/app
- extension-build-tmp:/app/tmp
- bundle-3.3:/usr/local/bundle
- "ddagent_var_run:${TEST_DDAGENT_VAR_RUN}"
# ADD NEW RUBIES HERE
datadog-ci-jruby-9.4:
image: ghcr.io/datadog/dd-trace-rb/jruby:9.4.0.0-dd
command: /bin/bash
env_file: ./.env
environment:
<<: *common-environment
BUNDLE_GEMFILE: /app/Gemfile-jruby-9.4
stdin_open: true
tty: true
volumes:
- .:/app
- bundle-jruby-9.4:/usr/local/bundle
- "ddagent_var_run:${TEST_DDAGENT_VAR_RUN}"
ddagent:
image: datadog/agent
environment:
- DD_APM_ENABLED=true
- DD_BIND_HOST=0.0.0.0
- "DD_API_KEY=${DD_API_KEY}"
- DD_HOSTNAME=dd-trace-rb-ci
- DD_APM_RECEIVER_SOCKET=/var/run/datadog/apm.socket
expose:
- "8125/udp"
- "8126"
ports:
- "127.0.0.1:${DD_METRIC_AGENT_PORT}:8125/udp"
- "127.0.0.1:${DD_TRACE_AGENT_PORT}:8126"
volumes:
- ddagent_var_run:/var/run/datadog
volumes:
bundle-2.7:
bundle-3.0:
bundle-3.1:
bundle-3.2:
bundle-3.3: # ADD NEW RUBIES HERE
bundle-jruby-9.4:
ddagent_var_run: # Temporary folder used while compiling the profiling native extension. We place this in a volume to avoid the
# massive performance hit (seconds to minutes) that we get when the tmp folder is shared with the host on macOS.
# Hopefully this will be fixed by
# https://www.docker.com/blog/speed-boost-achievement-unlocked-on-docker-desktop-4-6-for-mac/
# (which is not available for those of us still on macOS 11).
extension-build-tmp: