diff --git a/.github/workflows/build_and_test.yaml b/.github/workflows/build_and_test.yaml index e77cd3388e..96ab47eeda 100644 --- a/.github/workflows/build_and_test.yaml +++ b/.github/workflows/build_and_test.yaml @@ -110,6 +110,85 @@ jobs: ports: - 3306:3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 + elasticsearch: + container_name: temporal-elasticsearch + 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 + - ES_JAVA_OPTS=-Xms256m -Xmx256m + - xpack.security.enabled=false + image: elasticsearch:${ELASTICSEARCH_VERSION} + networks: + - temporal-network + expose: + - 9200 + volumes: + - /var/lib/elasticsearch/data + postgresql: + container_name: temporal-postgresql + environment: + POSTGRES_PASSWORD: temporal + POSTGRES_USER: temporal + image: postgres:${POSTGRESQL_VERSION} + networks: + - temporal-network + expose: + - 5432 + volumes: + - /var/lib/postgresql/data + temporal: + container_name: temporal + depends_on: + - postgresql + - elasticsearch + environment: + - DB=postgres12 + - DB_PORT=5432 + - POSTGRES_USER=temporal + - POSTGRES_PWD=temporal + - POSTGRES_SEEDS=postgresql + - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml + - ENABLE_ES=true + - ES_SEEDS=elasticsearch + - ES_VERSION=v7 + image: temporalio/auto-setup:${TEMPORAL_VERSION} + networks: + - temporal-network + ports: + - 7233:7233 + volumes: + - ./dynamicconfig:/etc/temporal/config/dynamicconfig + temporal-admin-tools: + container_name: temporal-admin-tools + depends_on: + - temporal + environment: + - TEMPORAL_ADDRESS=temporal:7233 + - TEMPORAL_CLI_ADDRESS=temporal:7233 + image: temporalio/admin-tools:${TEMPORAL_ADMINTOOLS_VERSION} + networks: + - temporal-network + stdin_open: true + tty: true + temporal-ui: + container_name: temporal-ui + depends_on: + - temporal + environment: + - TEMPORAL_ADDRESS=temporal:7233 + - TEMPORAL_CORS_ORIGINS=http://localhost:3000 + image: temporalio/ui:${TEMPORAL_UI_VERSION} + networks: + - temporal-network + ports: + - 8080:8080 + networks: + temporal-network: + driver: bridge + name: temporal-network steps: - name: Check out the repo uses: actions/checkout@v2 @@ -119,10 +198,6 @@ jobs: uses: actions/setup-java@v1 with: java-version: 1.8 - - - name: Set up Temporal Docker Compose - run: | - docker-compose -f .github/workflows/docker_compose_temporal.yaml up -d # Fix for bug where Github tests are failing port address binding. - name: Add the current IP address, long hostname and short hostname record to /etc/hosts file run: | diff --git a/docker-compose b/docker-compose deleted file mode 160000 index d28eb97ac5..0000000000 --- a/docker-compose +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d28eb97ac59b572e78a92bea8d371b2be2a46a0f diff --git a/docker-hadoop b/docker-hadoop deleted file mode 160000 index 8414e2b051..0000000000 --- a/docker-hadoop +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8414e2b05122f85392cce0d27bf3978ed056696e diff --git a/gobblin-temporal/src/test/files/SampleFile.txt b/gobblin-temporal/src/test/files/SampleFile.txt deleted file mode 100644 index 3f79730e3a..0000000000 --- a/gobblin-temporal/src/test/files/SampleFile.txt +++ /dev/null @@ -1 +0,0 @@ -Sample File \ No newline at end of file