forked from DataDog/dd-trace-rb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ci.yml
51 lines (51 loc) · 1.4 KB
/
docker-compose.ci.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
version: '3.4'
services:
app:
# Build at dd-trace-rb level to copy in current code
# and use it as the `ddtrace` gem.
build:
context: ../../..
dockerfile: integration/apps/ruby/Dockerfile-ci
args:
BASE_IMAGE: ${APP_IMAGE}
depends_on:
- ddagent
environment:
- BUNDLE_GEMFILE=/app/Gemfile
- DD_AGENT_HOST=ddagent
- DD_METRIC_AGENT_PORT=8125
- DD_TRACE_AGENT_PORT=8126
- DD_HEALTH_METRICS_ENABLED=true
- DD_SERVICE=acme-ruby
- DD_PROFILING_ENABLED=true
# Use these to choose what is run
- DD_DEMO_ENV_PROCESS=fibonacci
- DD_DEMO_ENV_FEATURES=tracing
stdin_open: true
tty: true
ddagent:
image: datadog/dd-apm-demo:agent
environment:
- DD_APM_ENABLED=true
- DD_PROCESS_AGENT_ENABLED=false
- DD_BIND_HOST=0.0.0.0
- DD_API_KEY=00000000000000000000000000000000
- LOG_LEVEL=DEBUG
- DD_LOGS_STDOUT=yes
- DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true
expose:
- "8125/udp"
- "8126"
# Build at dd-trace-rb level to copy in current code
# and use it as the `ddtrace` gem.
integration-tester:
build:
context: ../../..
dockerfile: integration/apps/ruby/Dockerfile-ci
args:
BASE_IMAGE: ${APP_IMAGE}
command: bin/test
# volumes:
# - .:/app
# - ../../images/include:/vendor/dd-demo
# - ../../..:/vendor/dd-trace-rb