Skip to content

Commit

Permalink
IWF-473: Upgrade Cadence dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel27m committed Feb 21, 2025
1 parent 6249778 commit 8194a71
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 74 deletions.
4 changes: 2 additions & 2 deletions docker-compose/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CASSANDRA_VERSION=3.11.9
ELASTICSEARCH_VERSION=7.16.2
CASSANDRA_VERSION=4.1.1
ELASTICSEARCH_VERSION=7.17.27
MYSQL_VERSION=8
POSTGRESQL_VERSION=13
TEMPORAL_VERSION=1.25
Expand Down
49 changes: 26 additions & 23 deletions docker-compose/ci-cadence-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,45 @@ services:
expose:
- 9200
cassandra:
image: cassandra:3.11
image: cassandra:${CASSANDRA_VERSION}
ports:
- "9042:9042"
healthcheck:
test: [ "CMD", "cqlsh", "-u cassandra", "-p cassandra", "-e describe keyspaces" ]
interval: 15s
timeout: 30s
retries: 10
networks:
- testing-network
zookeeper:
image: wurstmeister/zookeeper:latest
ports:
- "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:
condition: service_healthy
image: docker.io/bitnami/kafka:3.7
hostname: kafka
container_name: kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
# KRaft settings
- "KAFKA_CFG_NODE_ID=0"
- "KAFKA_CFG_PROCESS_ROLES=controller,broker"
- "KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093"
# Listeners
- "KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093"
- "KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092"
- "KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT"
- "KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER"
- "KAFKA_CFG_INTER_BROKER_LISTENER_NAME=PLAINTEXT"
# Topic settings
- "KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true"
networks:
- testing-network
healthcheck:
test:
[ "CMD", "kafka-topics.sh", "--list", "--zookeeper", "zookeeper:2181" ]
[ "CMD", "kafka-topics.sh", "--list", '--bootstrap-server', 'kafka:9092' ]
interval: 1s
timeout: 60s
retries: 60
cadence:
image: ubercadence/server:0.24.0-auto-setup
image: ubercadence/server:v1.2.16-auto-setup
ports:
- "8000:8000"
- "8001:8001"
Expand All @@ -65,6 +67,7 @@ services:
- "7935:7935"
- "7939:7939"
- "7833:7833"
- "7936:7936"
environment:
- "CASSANDRA_SEEDS=cassandra"
- "DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development_es.yaml"
Expand All @@ -74,7 +77,7 @@ services:
- "KAFKA_SEEDS=kafka"
depends_on:
cassandra:
condition: service_started
condition: service_healthy
kafka:
condition: service_healthy
elasticsearch:
Expand All @@ -87,7 +90,7 @@ services:
- cadence
environment:
- CADENCE_CLI_ADDRESS=cadence:7933
image: ubercadence/cli:0.24.0
image: ubercadence/cli:v1.2.16
networks:
- testing-network
stdin_open: true
Expand Down
49 changes: 26 additions & 23 deletions docker-compose/ci-cadence-temporal-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,43 +67,45 @@ services:
- ./init-ci-temporal.sh:/etc/temporal/init-ci-temporal.sh
entrypoint: sh -c "/etc/temporal/init-ci-temporal.sh"
cassandra:
image: cassandra:3.11
image: cassandra:${CASSANDRA_VERSION}
ports:
- "9042:9042"
healthcheck:
test: [ "CMD", "cqlsh", "-u cassandra", "-p cassandra", "-e describe keyspaces" ]
interval: 15s
timeout: 30s
retries: 10
networks:
- testing-network
zookeeper:
image: wurstmeister/zookeeper:latest
ports:
- "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:
condition: service_healthy
image: docker.io/bitnami/kafka:3.7
hostname: kafka
container_name: kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
# KRaft settings
- "KAFKA_CFG_NODE_ID=0"
- "KAFKA_CFG_PROCESS_ROLES=controller,broker"
- "KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093"
# Listeners
- "KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093"
- "KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092"
- "KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT"
- "KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER"
- "KAFKA_CFG_INTER_BROKER_LISTENER_NAME=PLAINTEXT"
# Topic settings
- "KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true"
networks:
- testing-network
healthcheck:
test:
[ "CMD", "kafka-topics.sh", "--list", "--zookeeper", "zookeeper:2181" ]
[ "CMD", "kafka-topics.sh", "--list", '--bootstrap-server', 'kafka:9092' ]
interval: 1s
timeout: 60s
retries: 60
cadence:
image: ubercadence/server:0.24.0-auto-setup
image: ubercadence/server:v1.2.16-auto-setup
ports:
- "8000:8000"
- "8001:8001"
Expand All @@ -114,6 +116,7 @@ services:
- "7935:7935"
- "7939:7939"
- "7833:7833"
- "7936:7936"
environment:
- "CASSANDRA_SEEDS=cassandra"
- "DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development_es.yaml"
Expand All @@ -123,7 +126,7 @@ services:
- "KAFKA_SEEDS=kafka"
depends_on:
cassandra:
condition: service_started
condition: service_healthy
kafka:
condition: service_healthy
elasticsearch:
Expand All @@ -136,7 +139,7 @@ services:
- cadence
environment:
- CADENCE_CLI_ADDRESS=cadence:7933
image: ubercadence/cli:0.24.0
image: ubercadence/cli:v1.2.16
networks:
- testing-network
stdin_open: true
Expand Down
4 changes: 3 additions & 1 deletion docker-compose/dynamicconfig/docker.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
frontend.enableUpdateWorkflowExecution:
- value: true
- value: true
frontend.enableQueryAttributeValidation:
- value: false
54 changes: 29 additions & 25 deletions docker-compose/integ-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,43 +67,45 @@ services:
- ./init-ci-temporal.sh:/etc/temporal/init-ci-temporal.sh
entrypoint: sh -c "/etc/temporal/init-ci-temporal.sh"
cassandra:
image: cassandra:3.11
image: cassandra:${CASSANDRA_VERSION}
ports:
- "9042:9042"
healthcheck:
test: [ "CMD", "cqlsh", "-u cassandra", "-p cassandra" ,"-e describe keyspaces" ]
interval: 15s
timeout: 30s
retries: 10
networks:
- testing-network
zookeeper:
image: wurstmeister/zookeeper:latest
ports:
- "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:
condition: service_healthy
image: docker.io/bitnami/kafka:3.7
hostname: kafka
container_name: kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
# KRaft settings
- "KAFKA_CFG_NODE_ID=0"
- "KAFKA_CFG_PROCESS_ROLES=controller,broker"
- "KAFKA_CFG_CONTROLLER_QUORUM_VOTERS=0@kafka:9093"
# Listeners
- "KAFKA_CFG_LISTENERS=PLAINTEXT://:9092,CONTROLLER://:9093"
- "KAFKA_CFG_ADVERTISED_LISTENERS=PLAINTEXT://kafka:9092"
- "KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP=CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT"
- "KAFKA_CFG_CONTROLLER_LISTENER_NAMES=CONTROLLER"
- "KAFKA_CFG_INTER_BROKER_LISTENER_NAME=PLAINTEXT"
# Topic settings
- "KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true"
networks:
- testing-network
healthcheck:
test:
[ "CMD", "kafka-topics.sh", "--list", "--zookeeper", "zookeeper:2181" ]
[ "CMD", "kafka-topics.sh", "--list", '--bootstrap-server', 'kafka:9092']
interval: 1s
timeout: 60s
retries: 60
cadence:
image: ubercadence/server:0.24.0-auto-setup
image: ubercadence/server:v1.2.16-auto-setup
ports:
- "8000:8000"
- "8001:8001"
Expand All @@ -114,6 +116,7 @@ services:
- "7935:7935"
- "7939:7939"
- "7833:7833"
- "7936:7936"
environment:
- "CASSANDRA_SEEDS=cassandra"
- "DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development_es.yaml"
Expand All @@ -123,7 +126,7 @@ services:
- "KAFKA_SEEDS=kafka"
depends_on:
cassandra:
condition: service_started
condition: service_healthy
kafka:
condition: service_healthy
elasticsearch:
Expand All @@ -136,7 +139,7 @@ services:
- cadence
environment:
- CADENCE_CLI_ADDRESS=cadence:7933
image: ubercadence/cli:0.24.0
image: ubercadence/cli:v1.2.16
networks:
- testing-network
stdin_open: true
Expand All @@ -145,9 +148,10 @@ services:
- ./init-ci-cadence.sh:/etc/cadence/init-ci-cadence.sh
entrypoint: sh -c "/etc/cadence/init-ci-cadence.sh"
cadence-web:
image: ubercadence/web:v3.29.6
image: ubercadence/web:v4.0.0
environment:
- "CADENCE_TCHANNEL_PEERS=cadence:7933"
- "CADENCE_GRPC_PEERS=cadence:7833"
ports:
- "8088:8088"
depends_on:
Expand All @@ -169,4 +173,4 @@ services:
networks:
testing-network:
driver: bridge
name: testing-network
name: testing-network

0 comments on commit 8194a71

Please sign in to comment.