mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? <!-- Describe what has changed in this PR --> Specify patch version of Cassandra image to use in buildkite. ## Why? <!-- Tell your future self why have you made these changes --> It seems that the latest version (3.11.16) has some issues with buildkite (`Cassandra 3.0 and later require Java 8u40 or later.`) ## How did you test it? <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> ## Potential risks <!-- Assuming the worst case, what can be broken when deploying this change to production? --> ## Is hotfix candidate? <!-- Is this PR a hotfix candidate or does it require a notification to be sent to the broader community? (Yes/No) -->
466 lines
11 KiB
YAML
466 lines
11 KiB
YAML
version: "3.5"
|
|
|
|
services:
|
|
cassandra:
|
|
image: cassandra:3.11.15
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- cassandra
|
|
|
|
mysql:
|
|
image: mysql:8.0.29-oracle
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: root
|
|
volumes:
|
|
- ./mysql-init:/docker-entrypoint-initdb.d
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- mysql
|
|
|
|
postgresql:
|
|
image: postgres:13.5
|
|
environment:
|
|
POSTGRES_USER: temporal
|
|
POSTGRES_PASSWORD: temporal
|
|
volumes:
|
|
- ./postgresql-init:/docker-entrypoint-initdb.d
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- postgresql
|
|
|
|
elasticsearch:
|
|
image: elasticsearch:7.10.1
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- elasticsearch
|
|
environment:
|
|
- discovery.type=single-node
|
|
|
|
elasticsearch8:
|
|
image: elasticsearch:8.0.0
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- elasticsearch8
|
|
environment:
|
|
- cluster.routing.allocation.disk.threshold_enabled=true
|
|
- cluster.routing.allocation.disk.watermark.low=512mb
|
|
- cluster.routing.allocation.disk.watermark.high=256mb
|
|
- cluster.routing.allocation.disk.watermark.flood_stage=128mb
|
|
- discovery.type=single-node
|
|
- xpack.security.enabled=false
|
|
- ES_JAVA_OPTS=-Xms100m -Xmx100m
|
|
|
|
opensearch:
|
|
image: opensearchproject/opensearch:2.6.0
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- opensearch
|
|
environment:
|
|
- discovery.type=single-node
|
|
- plugins.security.disabled=true
|
|
|
|
prebuild:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
target: prebuild
|
|
|
|
build:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "CASSANDRA_SEEDS=cassandra"
|
|
- "MYSQL_SEEDS=mysql"
|
|
- "POSTGRES_SEEDS=postgresql"
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
|
|
ci-build-misc:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
volumes:
|
|
# note: this one mounts the whole checkout to get .git
|
|
- ../..:/temporal
|
|
|
|
db-integration-test:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "CASSANDRA_SEEDS=cassandra"
|
|
- "MYSQL_SEEDS=mysql"
|
|
- "POSTGRES_SEEDS=postgresql"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- cassandra
|
|
- mysql
|
|
- postgresql
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- db-integration-test
|
|
|
|
integration-test-cassandra:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "CASSANDRA_SEEDS=cassandra"
|
|
- "ES_SEEDS=elasticsearch"
|
|
- "ES_VERSION=v7"
|
|
- "PERSISTENCE_TYPE=nosql"
|
|
- "PERSISTENCE_DRIVER=cassandra"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- cassandra
|
|
- elasticsearch
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test
|
|
|
|
integration-test-cassandra-es8:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "CASSANDRA_SEEDS=cassandra"
|
|
- "ES_SEEDS=elasticsearch8"
|
|
- "ES_VERSION=v8"
|
|
- "PERSISTENCE_TYPE=nosql"
|
|
- "PERSISTENCE_DRIVER=cassandra"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- cassandra
|
|
- elasticsearch8
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test
|
|
|
|
integration-test-cassandra-opensearch:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "CASSANDRA_SEEDS=cassandra"
|
|
- "ES_SEEDS=opensearch"
|
|
- "ES_VERSION=v8"
|
|
- "PERSISTENCE_TYPE=nosql"
|
|
- "PERSISTENCE_DRIVER=cassandra"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- cassandra
|
|
- opensearch
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test
|
|
|
|
integration-test-mysql:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "MYSQL_SEEDS=mysql"
|
|
- "ES_SEEDS=elasticsearch"
|
|
- "ES_VERSION=v7"
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=mysql"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- mysql
|
|
- elasticsearch
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test
|
|
|
|
integration-test-mysql8:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "MYSQL_SEEDS=mysql"
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=mysql8"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- mysql
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test
|
|
|
|
integration-test-postgresql:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "POSTGRES_SEEDS=postgresql"
|
|
- "ES_SEEDS=elasticsearch"
|
|
- "ES_VERSION=v7"
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=postgres"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- postgresql
|
|
- elasticsearch
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test
|
|
|
|
integration-test-postgresql-pgx:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "POSTGRES_SEEDS=postgresql"
|
|
- "ES_SEEDS=elasticsearch"
|
|
- "ES_VERSION=v7"
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=postgres_pgx"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- postgresql
|
|
- elasticsearch
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test
|
|
|
|
integration-test-postgresql12:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "POSTGRES_SEEDS=postgresql"
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=postgres12"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- postgresql
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test
|
|
|
|
integration-test-postgresql12-pgx:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "POSTGRES_SEEDS=postgresql"
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=postgres12_pgx"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- postgresql
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test
|
|
|
|
integration-test-sqlite:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=sqlite"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test
|
|
|
|
integration-test-xdc-cassandra:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "CASSANDRA_SEEDS=cassandra"
|
|
- "ES_SEEDS=elasticsearch"
|
|
- "ES_VERSION=v7"
|
|
- "PERSISTENCE_TYPE=nosql"
|
|
- "PERSISTENCE_DRIVER=cassandra"
|
|
- "TEST_RUN_COUNT=10"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- cassandra
|
|
- elasticsearch
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test-xdc
|
|
|
|
integration-test-xdc-mysql:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "MYSQL_SEEDS=mysql"
|
|
- "ES_SEEDS=elasticsearch"
|
|
- "ES_VERSION=v7"
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=mysql"
|
|
- "TEST_RUN_COUNT=10"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- mysql
|
|
- elasticsearch
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test-xdc
|
|
|
|
integration-test-xdc-mysql8:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "MYSQL_SEEDS=mysql"
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=mysql8"
|
|
- "TEST_RUN_COUNT=10"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- mysql
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test-xdc
|
|
|
|
integration-test-xdc-postgresql:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "POSTGRES_SEEDS=postgresql"
|
|
- "ES_SEEDS=elasticsearch"
|
|
- "ES_VERSION=v7"
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=postgres"
|
|
- "TEST_RUN_COUNT=10"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- postgresql
|
|
- elasticsearch
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test-xdc
|
|
|
|
integration-test-xdc-postgresql-pgx:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "POSTGRES_SEEDS=postgresql"
|
|
- "ES_SEEDS=elasticsearch"
|
|
- "ES_VERSION=v7"
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=postgres_pgx"
|
|
- "TEST_RUN_COUNT=10"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- postgresql
|
|
- elasticsearch
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test-xdc
|
|
|
|
integration-test-xdc-postgresql12:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "POSTGRES_SEEDS=postgresql"
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=postgres12"
|
|
- "TEST_RUN_COUNT=10"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- postgresql
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test-xdc
|
|
|
|
integration-test-xdc-postgresql12-pgx:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- "POSTGRES_SEEDS=postgresql"
|
|
- "PERSISTENCE_TYPE=sql"
|
|
- "PERSISTENCE_DRIVER=postgres12_pgx"
|
|
- "TEST_RUN_COUNT=10"
|
|
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
|
|
depends_on:
|
|
- postgresql
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
networks:
|
|
services-network:
|
|
aliases:
|
|
- integration-test-xdc
|
|
|
|
coverage-report:
|
|
build:
|
|
context: ../..
|
|
dockerfile: ./develop/buildkite/Dockerfile
|
|
environment:
|
|
- COVERALLS_TOKEN
|
|
volumes:
|
|
- ../../.testoutput:/temporal/.testoutput
|
|
|
|
networks:
|
|
services-network:
|
|
name: "network-$BUILDKITE_BUILD_NUMBER"
|
|
driver: bridge
|