forked from roostorg/osprey
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yaml
More file actions
100 lines (96 loc) · 3.16 KB
/
docker-compose.test.yaml
File metadata and controls
100 lines (96 loc) · 3.16 KB
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
# Test-specific docker-compose that extends the main one
# Usage: docker compose -f docker-compose.yaml -f docker-compose.test.yaml --profile test <command>
services:
postgres:
ports: !reset []
volumes: !reset []
minio:
volumes: !reset []
etcd:
container_name: etcd
image: quay.io/coreos/etcd:v3.4.18
ports:
- "127.0.0.1:2379:2379"
environment:
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
- ETCD_LISTEN_PEER_URLS=http://0.0.0.0:2380
- ETCD_INITIAL_ADVERTISE_PEER_URLS=http://etcd:2380
- ETCD_INITIAL_CLUSTER=etcd=http://etcd:2380
- ETCD_NAME=etcd
- ETCD_DATA_DIR=/etcd-data
- ETCD_ENABLE_V2=true
healthcheck:
test:
[
"CMD",
"etcdctl",
"--endpoints=http://localhost:2379",
"endpoint",
"health",
]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
test_runner:
container_name: osprey_test_runner
build:
context: .
dockerfile: osprey_worker/Dockerfile
depends_on:
osprey-kafka:
condition: service_healthy
osprey-kafka-topic-creator:
condition: service_completed_successfully
bigtable:
condition: service_healthy
bigtable-initializer:
condition: service_completed_successfully
minio:
condition: service_healthy
minio-bucket-init:
condition: service_completed_successfully
postgres:
condition: service_healthy
snowflake-id-worker:
condition: service_started
etcd:
condition: service_healthy
profiles:
- test
environment:
- PYTHONPATH=/osprey
- OSPREY_INPUT_STREAM_SOURCE=kafka
- OSPREY_STDOUT_OUTPUT_SINK=True
- OSPREY_KAFKA_BOOTSTRAP_SERVERS=["osprey-kafka:29092"]
- OSPREY_KAFKA_INPUT_STREAM_TOPIC=osprey.actions_input
- OSPREY_KAFKA_INPUT_STREAM_CLIENT_ID=localhost
- OSPREY_KAFKA_OUTPUT_SINK=True
- OSPREY_KAFKA_OUTPUT_TOPIC=osprey.execution_results
- OSPREY_KAFKA_OUTPUT_CLIENT_ID=localhost
- DD_TRACE_ENABLED=False
- DD_DOGSTATSD_DISABLE=True
- OSPREY_RULES_SINK_NUM_WORKERS=1
- BIGTABLE_EMULATOR_HOST=bigtable:8361
- OSPREY_EXECUTION_RESULT_STORAGE_BACKEND=minio
- OSPREY_MINIO_ENDPOINT=minio:9000
- OSPREY_MINIO_ACCESS_KEY=minioadmin
- OSPREY_MINIO_SECRET_KEY=minioadmin123
- OSPREY_MINIO_SECURE=false
- OSPREY_MINIO_EXECUTION_RESULTS_BUCKET=execution-output
- SNOWFLAKE_API_ENDPOINT=http://snowflake-id-worker:8088
- SNOWFLAKE_EPOCH=1420070400000
- OSPREY_RULES_PATH=./example_rules
- OSPREY_DISABLE_VALIDATION_EXPORTER=true
- DRUID_URL=http://druid-broker:8082
- POSTGRES_HOSTS={"osprey_db":"postgresql://osprey:FoolishPassword@postgres:5432/osprey"}
- ETCD_PEERS=http://etcd:2379
- TESTING=true
volumes:
- ./osprey_worker:/osprey/osprey_worker
- ./osprey_rpc:/osprey/osprey_rpc
- ./example_rules:/osprey/example_rules
- ./entrypoint.sh:/osprey/entrypoint.sh
- /tmp/test-results:/tmp/test-results
command: ["run-tests"]