Skip to content

Commit

Permalink
integrated with docker to prevent mocking temporal workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Pratap Singh committed Oct 7, 2024
1 parent 353190b commit 949df4a
Show file tree
Hide file tree
Showing 8 changed files with 205 additions and 246 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ 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: |
Expand Down
81 changes: 81 additions & 0 deletions .github/workflows/docker_compose_temporal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
version: "3.5"
services:
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
1 change: 1 addition & 0 deletions docker-compose
Submodule docker-compose added at d28eb9
1 change: 1 addition & 0 deletions docker-hadoop
Submodule docker-hadoop added at 8414e2
3 changes: 0 additions & 3 deletions gobblin-temporal/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ dependencies {
testCompile project(":gobblin-example")

testCompile externalDependency.testng
testCompile externalDependency.mockitoInline
testCompile externalDependency.powerMockApi
testCompile externalDependency.powerMockModule
testCompile externalDependency.hadoopYarnMiniCluster
testCompile externalDependency.curatorFramework
testCompile externalDependency.curatorTest
Expand Down
1 change: 1 addition & 0 deletions gobblin-temporal/src/test/files/SampleFile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sample File

This file was deleted.

Loading

0 comments on commit 949df4a

Please sign in to comment.