This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.gcb.yaml
65 lines (65 loc) · 2.04 KB
/
docker-compose.gcb.yaml
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
---
version: '3.4'
services:
postgres:
image: postgres:9.6-alpine
command:
- "postgres"
- "-c"
- "wal_level=logical"
- "-c"
- "max_replication_slots=1"
- "-c"
- "max_wal_senders=1"
environment:
POSTGRES_PASSWORD: "password"
volumes:
- .github/workflows/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
zookeeper:
image: 'confluentinc/cp-zookeeper:5.1.2'
environment:
ZOOKEEPER_CLIENT_PORT: '2181'
CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
ZOOKEEPER_LOG4J_ROOT_LOGLEVEL: 'WARN'
ZOOKEEPER_TOOLS_LOG4J_LOGLEVEL: 'WARN'
kafka:
depends_on:
- zookeeper
image: 'confluentinc/cp-kafka:5.1.2'
environment:
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://kafka:9092'
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: '1'
CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
KAFKA_LOG4J_LOGGERS: 'kafka.cluster=WARN,kafka.controller=WARN,kafka.coordinator=WARN,kafka.log=WARN,kafka.server=WARN,kafka.zookeeper=WARN,state.change.logger=WARN'
KAFKA_LOG4J_ROOT_LOGLEVEL: 'WARN'
KAFKA_TOOLS_LOG4J_LOGLEVEL: 'WARN'
cdc:
depends_on:
- postgres
- kafka
image: $CDC_IMAGE
command:
- /bin/sh
- -c
- |
python integration-test/wait_for_postgres.py
cdc -c /configuration-test.yaml producer
volumes:
- './integration-test/wait_for_postgres.py:/wait_for_postgres.py'
- './integration-test/configuration-test.yaml:/configuration-test.yaml'
environment:
CDC_POSTGRES_DSN_TEMPLATE: "postgres://postgres:password@postgres:5432/{database}"
cdc-e2e-test:
depends_on:
- cdc
image: $CDC_IMAGE
command:
- /bin/sh
- -c
- |
pip install -r requirements-dev.txt
python integration-test/wait_for_postgres.py
python -m pytest -vv -s integration-test/test_producer.py
environment:
CDC_POSTGRES_DSN_TEMPLATE: "postgres://postgres:password@postgres:5432/{database}"