Skip to content

Commit

Permalink
wip: routine connector
Browse files Browse the repository at this point in the history
  • Loading branch information
Threated committed Jan 10, 2025
1 parent e351036 commit 698e879
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dhki/vars
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,12 @@ do
done

idManagementSetup
obds2fhirRestSetup
obds2fhirRestSetup

for module in modules/*.sh
do
log DEBUG "sourcing $module"
source $module
done

routineConnectorSetup
19 changes: 19 additions & 0 deletions modules/routine-connector-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

services:
routine-connector:
image: samply/routine-connector:latest # TODO: Harbor image
container_name: bridgehead-routine-connector
environment:
INSTITUTE_TTP_URL: "${INSTITUTE_TTP_URL}"
INSTITUTE_TTP_API_KEY: "${INSTITUTE_TTP_API_KEY}"
PROJECT_ID_SYSTEM: "${PROJECT_ID_SYSTEM}"
FHIR_REQUEST_URL: "${FHIR_REQUEST_URL}"
FHIR_INPUT_URL: "${FHIR_INPUT_URL}"
FHIR_OUTPUT_URL: "${FHIR_OUTPUT_URL}"
FHIR_REQUEST_CREDENTIALS: "${FHIR_REQUEST_CREDENTIALS}"
FHIR_INPUT_CREDENTIALS: "${FHIR_INPUT_CREDENTIALS}"
FHIR_OUTPUT_CREDENTIALS: "${FHIR_OUTPUT_CREDENTIALS}"
EXCHANGE_ID_SYSTEM: "SESSION_ID"
DATABASE_URL: "sqlite://routine-connector/data_requests.sql?mode=rwc"
volumes:
- /var/cache/bridgehead/${PROJECT}/routine-connector:/routine-connector
17 changes: 17 additions & 0 deletions modules/routine-connector-output-blaze-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

services:
routine-connector-blaze:
image: docker.verbis.dkfz.de/cache/samply/blaze:0.28
container_name: bridgehead-routine-connector-blaze
environment:
BASE_URL: "http://bridgehead-ccp-blaze:8080"
JAVA_TOOL_OPTIONS: "-Xmx${BLAZE_MEMORY_CAP:-4096}m"
DB_RESOURCE_CACHE_SIZE: ${BLAZE_RESOURCE_CACHE_CAP:-2500000}
DB_BLOCK_CACHE_SIZE: ${BLAZE_MEMORY_CAP}
CQL_EXPR_CACHE_SIZE: ${BLAZE_CQL_CACHE_CAP:-32}
ENFORCE_REFERENTIAL_INTEGRITY: "false"
volumes:
- "routine-blaze-data:/app/data"

volumes:
routine-balze-data:
13 changes: 13 additions & 0 deletions modules/routine-connector-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -e

function routineConnectorSetup() {
assertVarsNotEmpty INSTITUTE_TTP_URL INSTITUTE_TTP_API_KEY PROJECT_ID_SYSTEM FHIR_REQUEST_URL FHIR_INPUT_URL
OVERRIDE+=" -f ./modules/routine-connector-compose.yml"
if [ -n "$FHIR_OUTPUT_URL" ]; then
log INFO "Routine connector output fhir store set to external $FHIR_OUTPUT_URL"
else
log INFO "Routine connector output fhir store not set writing to internal blaze"
FHIR_OUTPUT_URL="http://routine-connector-blaze:8080"
OVERRIDE+=" -f ./modules/routine-connector-compose.yml"
fi
}

0 comments on commit 698e879

Please sign in to comment.