Skip to content

Commit

Permalink
Fix Cadence starting issue in docker compose (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwolczynski authored Dec 23, 2024
1 parent 3856257 commit 4e9aec8
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 12 deletions.
23 changes: 19 additions & 4 deletions docker-compose/ci-cadence-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,16 @@ services:
- "2181:2181"
networks:
- testing-network
healthcheck:
test: [ "CMD-SHELL", "echo ruok | nc -w 2 zookeeper 2181" ]
interval: 5s
timeout: 10s
retries: 3
kafka:
image: wurstmeister/kafka:2.12-2.1.1
depends_on:
- zookeeper
zookeeper:
condition: service_healthy
ports:
- "9092:9092"
environment:
Expand All @@ -41,6 +47,12 @@ services:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
networks:
- testing-network
healthcheck:
test:
[ "CMD", "kafka-topics.sh", "--list", "--zookeeper", "zookeeper:2181" ]
interval: 1s
timeout: 60s
retries: 60
cadence:
image: ubercadence/server:0.24.0-auto-setup
ports:
Expand All @@ -61,9 +73,12 @@ services:
- "ES_VERSION=v7"
- "KAFKA_SEEDS=kafka"
depends_on:
- cassandra
- kafka
- elasticsearch
cassandra:
condition: service_started
kafka:
condition: service_healthy
elasticsearch:
condition: service_started
networks:
- testing-network
cadence-admin-tools:
Expand Down
23 changes: 19 additions & 4 deletions docker-compose/ci-cadence-temporal-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,16 @@ services:
- "2181:2181"
networks:
- testing-network
healthcheck:
test: [ "CMD-SHELL", "echo ruok | nc -w 2 zookeeper 2181" ]
interval: 5s
timeout: 10s
retries: 3
kafka:
image: wurstmeister/kafka:2.12-2.1.1
depends_on:
- zookeeper
zookeeper:
condition: service_healthy
ports:
- "9092:9092"
environment:
Expand All @@ -90,6 +96,12 @@ services:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
networks:
- testing-network
healthcheck:
test:
[ "CMD", "kafka-topics.sh", "--list", "--zookeeper", "zookeeper:2181" ]
interval: 1s
timeout: 60s
retries: 60
cadence:
image: ubercadence/server:0.24.0-auto-setup
ports:
Expand All @@ -110,9 +122,12 @@ services:
- "ES_VERSION=v7"
- "KAFKA_SEEDS=kafka"
depends_on:
- cassandra
- kafka
- elasticsearch
cassandra:
condition: service_started
kafka:
condition: service_healthy
elasticsearch:
condition: service_started
networks:
- testing-network
cadence-admin-tools:
Expand Down
23 changes: 19 additions & 4 deletions docker-compose/integ-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,16 @@ services:
- "2181:2181"
networks:
- testing-network
healthcheck:
test: [ "CMD-SHELL", "echo ruok | nc -w 2 zookeeper 2181" ]
interval: 5s
timeout: 10s
retries: 3
kafka:
image: wurstmeister/kafka:2.12-2.1.1
depends_on:
- zookeeper
zookeeper:
condition: service_healthy
ports:
- "9092:9092"
environment:
Expand All @@ -90,6 +96,12 @@ services:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
networks:
- testing-network
healthcheck:
test:
[ "CMD", "kafka-topics.sh", "--list", "--zookeeper", "zookeeper:2181" ]
interval: 1s
timeout: 60s
retries: 60
cadence:
image: ubercadence/server:0.24.0-auto-setup
ports:
Expand All @@ -110,9 +122,12 @@ services:
- "ES_VERSION=v7"
- "KAFKA_SEEDS=kafka"
depends_on:
- cassandra
- kafka
- elasticsearch
cassandra:
condition: service_started
kafka:
condition: service_healthy
elasticsearch:
condition: service_started
networks:
- testing-network
cadence-admin-tools:
Expand Down

0 comments on commit 4e9aec8

Please sign in to comment.