Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/run-functional-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- "build.gradle"
- "settings.gradle"
- "gradle/**"
- "docker-compose.yaml"

jobs:
pipeline:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- "build.gradle"
- "settings.gradle"
- "gradle/**"
- "docker-compose.yaml"

jobs:
pipeline:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- "build.gradle"
- "settings.gradle"
- "gradle/**"
- "docker-compose.yaml"

jobs:
pipeline:
Expand Down
97 changes: 0 additions & 97 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,103 +133,6 @@ services:
timeout: 5s
retries: 5

investigation-service:
build:
dockerfile: ./investigation-service/Dockerfile
environment:
- DB_USERNAME=investigation_service_rdb
- DB_PASSWORD=investigation_service
- DB_HOST=jdbc:sqlserver://nbs-mssql:1433;databaseName=RDB_MODERN;encrypt=true;trustServerCertificate=true;
- KAFKA_BOOTSTRAP_SERVER=kafka:29092
depends_on:
kafka:
condition: service_healthy
nbs-mssql:
condition: service_healthy
liquibase:
condition: service_completed_successfully

ldfdata-service:
build:
dockerfile: ./ldfdata-service/Dockerfile
environment:
- DB_USERNAME=ldf_service_rdb
- DB_PASSWORD=ldf_service
- DB_HOST=jdbc:sqlserver://nbs-mssql:1433;databaseName=RDB_MODERN;encrypt=true;trustServerCertificate=true;
- KAFKA_BOOTSTRAP_SERVER=kafka:29092
depends_on:
kafka:
condition: service_healthy
nbs-mssql:
condition: service_healthy
liquibase:
condition: service_completed_successfully

observation-service:
build:
dockerfile: ./observation-service/Dockerfile
environment:
- DB_USERNAME=observation_service_rdb
- DB_PASSWORD=observation_service
- DB_HOST=jdbc:sqlserver://nbs-mssql:1433;databaseName=RDB_MODERN;encrypt=true;trustServerCertificate=true;
- KAFKA_BOOTSTRAP_SERVER=kafka:29092
depends_on:
kafka:
condition: service_healthy
nbs-mssql:
condition: service_healthy
liquibase:
condition: service_completed_successfully

organization-service:
build:
dockerfile: ./organization-service/Dockerfile
environment:
- DB_USERNAME=organization_service_rdb
- DB_PASSWORD=organization_service
- DB_HOST=jdbc:sqlserver://nbs-mssql:1433;databaseName=RDB_MODERN;encrypt=true;trustServerCertificate=true;
- KAFKA_BOOTSTRAP_SERVER=kafka:29092
depends_on:
kafka:
condition: service_healthy
nbs-mssql:
condition: service_healthy
liquibase:
condition: service_completed_successfully

person-service:
build:
dockerfile: ./person-service/Dockerfile
environment:
- DB_USERNAME=person_service_rdb
- DB_PASSWORD=person_service
- DB_HOST=jdbc:sqlserver://nbs-mssql:1433;databaseName=RDB_MODERN;encrypt=true;trustServerCertificate=true;
- KAFKA_BOOTSTRAP_SERVER=kafka:29092
- spring.kafka.consumer.maxPollIntervalMs=3000
depends_on:
kafka:
condition: service_healthy
nbs-mssql:
condition: service_healthy
liquibase:
condition: service_completed_successfully

post-processing-service:
build:
dockerfile: ./post-processing-service/Dockerfile
environment:
- DB_USERNAME=post_processing_service_rdb
- DB_PASSWORD=post_processing_service
- DB_HOST=jdbc:sqlserver://nbs-mssql:1433;databaseName=RDB_MODERN;encrypt=true;trustServerCertificate=true;
- KAFKA_BOOTSTRAP_SERVER=kafka:29092
depends_on:
kafka:
condition: service_healthy
nbs-mssql:
condition: service_healthy
liquibase:
condition: service_completed_successfully

reporting-pipeline-service:
build:
dockerfile: ./reporting-pipeline-service/Dockerfile
Expand Down
16 changes: 8 additions & 8 deletions documentation/DevSetup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

## Docker Containers

1. [mssql](../containers/db/Dockerfile) - Restored MSSQL Server database pre-configured to work with RTR. Notable configurations
1. [mssql](https://github.com/cdcent/NEDSSDB/pkgs/container/nedssdb) - Restored MSSQL Server database pre-configured to work with RTR. Notable configurations
1. NBS_ODSE.NBS_Configuration entry added with `config_key = 'ENV'`, `config_value = 'UAT'`
1. RTR User creation scripts applied
1. Change Data Capture (CDC) enabled for relevant databases and tables
1. [liquibase](../liquibase-service/Dockerfile.local) - Liquibase container with all migration scripts copied from [liquibase-service/src/main/resources/db/](../liquibase-service/src/main/resources/db/). Configured to automatically apply migrations and 1 time onboarding scripts and then close. Entrypoint: [migrate.sh](../containers/liquibase/migrate.sh)
1. [kafka](../docker-compose.yaml) - Message broker
1. [kafka-connect](../containers/kafka-connect/Dockerfile) - Reads from the `nrt_*` topics and inserts into `rdb_modern` tables. Requires POST of [mssql-connector.json](../containers/kafka-connect/mssql-connector.json) after container start up.
1. [debezium](../docker-compose.yaml) - Reads Change Data Capture logs and posts messages to Kafka. Requires POST for each connector to be sent after container start up.
1. [reporting-pipeline-service](../reporting-pipeline-service/Dockerfile) - Process Kafka messages for investigation, ldf, observation, organization, and person data (also handles key-uid mappings)
2. RTR User creation scripts applied
3. Change Data Capture (CDC) enabled for relevant databases and tables
2. [liquibase](../liquibase-service/Dockerfile.local) - Liquibase container with all migration scripts copied from `../liquibase-service/src/main/resources/db/`. Configured to automatically apply migrations and 1 time onboarding scripts and then close. Entrypoint: [migrate.sh](../containers/liquibase/migrate.sh)
3. [kafka](../docker-compose.yaml) - Message broker
4. [kafka-connect](../containers/kafka-connect/Dockerfile) - Reads from the `nrt_*` topics and inserts into `rdb_modern` tables. Requires POST of [mssql-connector.json](../containers/kafka-connect/initialize/mssql-connector.json) after container start up.
5. [debezium](../docker-compose.yaml) - Reads Change Data Capture logs and posts messages to Kafka. Requires POST for each connector to be sent after container start up.
6. [reporting-pipeline-service](../reporting-pipeline-service/Dockerfile) - Process Kafka messages for investigation, ldf, observation, organization, and person data (also handles key-uid mappings)

### Prerequisites:

Expand Down