Skip to content

Commit

Permalink
Add docker compose entry for srte-data-service. Add default configs t…
Browse files Browse the repository at this point in the history
…o use local di-mssql and di-keycloak (#260)

Co-authored-by: Michael Peels <[email protected]>
  • Loading branch information
mpeels and Michael Peels authored Dec 17, 2024
1 parent c511452 commit ca200a7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
19 changes: 18 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
context: ./
dockerfile: ./data-ingestion-service/Dockerfile
ports:
- "8083:8081"
- "8081:8081"
depends_on:
broker:
condition: service_started
Expand All @@ -20,6 +20,23 @@ services:
networks:
- dataingestion

srte-data-service:
build:
context: .
dockerfile: ./srte-data-service/Dockerfile
ports:
- 8084:8084
depends_on:
di-keycloak:
condition: service_started
di-mssql:
condition: service_healthy
container_name: srte-data-service
env_file:
- dataingestion.env
networks:
- dataingestion

zookeeper:
image: confluentinc/cp-zookeeper:7.3.0
hostname: zookeeper
Expand Down
24 changes: 21 additions & 3 deletions docs/DevSetup.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Following this guide will set up a fully functioning local development environme
```bash
./containers/build_classic.sh
```
2. Start Keycloak, Kafka, and database container
2. Start Keycloak, Kafka, SRTE data cache, and database container
```bash
docker compose up di-keycloak broker zookeeper di-mssql -d
docker compose up di-keycloak broker zookeeper di-mssql srte-data-service -d
```
3. Start data-ingestion-service with gradle. Allows remote debugging using port `19040`
```bash
Expand Down Expand Up @@ -39,8 +39,9 @@ The docker compose file supports pulling information from a `.dataingestion.env`
#### dataingestion.env - place at the project root, alongside the docker-compose.yml
```bash
DI_AUTH_URI=http://di-keycloak:8080/realms/NBS;
RTI_CACHE_AUTH_URI=http://di-keycloak:8080/realms/NBS
NBS_DBSERVER=di-mssql:2433
NBS_DBSERVER=di-mssql:1433
NBS_DBUSER=sa
NBS_DBPASSWORD=fake.fake.fake.1234
KC_BOOTSTRAP_ADMIN_USERNAME=admin
Expand Down Expand Up @@ -78,6 +79,23 @@ spring:
url: jdbc:sqlserver://localhost:2433;databaseName=NBS_ODSE;encrypt=true;trustServerCertificate=true;
srte:
url: jdbc:sqlserver://localhost:2433;databaseName=NBS_SRTE;encrypt=true;trustServerCertificate=true;
features:
modernizedMatching:
enabled: true
url: http://localhost:8083/api/deduplication/
cache:
clientId: di-keycloak-client
secret: OhBq1ar96aep8cnirHwkCNfgsO9yybZI
token: http://localhost:8084/data/api/auth/token
srte:
cacheString: http://localhost:8084/data/srte/cache/string
cacheContain: http://localhost:8084/data/srte/cache/contain
cacheObject: http://localhost:8084/data/srte/cache/object
odse:
localId: http://localhost:8084/data/odse/localId
```

#### deduplication/src/main/resources/application-local.yaml
Expand Down
2 changes: 1 addition & 1 deletion srte-data-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM amazoncorretto:21 as builder
FROM amazoncorretto:21 AS builder
WORKDIR /usr/src/srtedataservice
#Copy project config
COPY gradle gradle
Expand Down

0 comments on commit ca200a7

Please sign in to comment.