-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
52 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ do | |
source $module | ||
done | ||
|
||
routineConnectorSetup | ||
transfairSetup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
#!/bin/bash -e | ||
|
||
function transfairSetup() { | ||
assertVarsNotEmpty INSTITUTE_TTP_URL INSTITUTE_TTP_API_KEY PROJECT_ID_SYSTEM FHIR_REQUEST_URL FHIR_INPUT_URL | ||
if [[ -n "$INSTITUTE_TTP_URL" || -n "$EXCHANGE_ID_SYSTEM" ]]; then | ||
echo "Starting transfair." | ||
else | ||
return | ||
fi | ||
OVERRIDE+=" -f ./modules/transfair-compose.yml" | ||
if [ -n "$FHIR_OUTPUT_URL" ]; then | ||
log INFO "TransFAIR output fhir store set to external $FHIR_OUTPUT_URL" | ||
if [ -n "$FHIR_INPUT_URL" ]; then | ||
log INFO "TransFAIR input fhir store set to external $FHIR_INPUT_URL" | ||
else | ||
log INFO "TransFAIR output fhir store not set writing to internal blaze" | ||
FHIR_OUTPUT_URL="http://transfair-blaze:8080" | ||
OVERRIDE+=" -f ./modules/transfair-compose.yml" | ||
log INFO "TransFAIR input fhir store not set writing to internal blaze" | ||
FHIR_INPUT_URL="http://bridgehead-transfair-input-blaze:8080" | ||
OVERRIDE+=" --profile transfair-input-blaze" | ||
fi | ||
if [ -n "$FHIR_REQUEST_URL" ]; then | ||
log INFO "TransFAIR request fhir store set to external $FHIR_REQUEST_URL" | ||
else | ||
log INFO "TransFAIR request fhir store not set writing to internal blaze" | ||
FHIR_REQUEST_URL="http://bridgehead-transfair-requests-blaze:8080" | ||
OVERRIDE+=" --profile transfair-request-blaze" | ||
fi | ||
} |