Skip to content

Commit

Permalink
OZ-742: Pulled and rebased from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruhanga committed Dec 16, 2024
1 parent fd6bc51 commit 2a9d924
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ENABLE_SSO=false

# Bahmni EMR

LOKI_URL=http://localhost:3100/loki/api/v1/push
RUN_WITH_BAHMNI_EMR=false

# Mail Config Properties Environment Variables
MAIL_TRANSPORT_PROTOCOL=smtps
Expand Down
1 change: 1 addition & 0 deletions scripts/docker-compose-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ docker-compose-odoo.yml
docker-compose-odoo-sso.yml
docker-compose-openmrs.yml
docker-compose-openmrs-sso.yml
docker-compose-bahmniemr.yml
docker-compose-senaite.yml
docker-compose-senaite-sso.yml
docker-compose-backup.yml
14 changes: 14 additions & 0 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,27 @@ function exportPaths () {
function setDockerComposeCLIOptions () {
# Parse 'docker-compose-files.txt' to get the list of Docker Compose files to run
dockerComposeFiles=$(cat docker-compose-files.txt)

if [ "$RUN_WITH_BAHMNI_EMR" == "true" ]; then
export ENABLE_SSO=false
fi

for file in ${dockerComposeFiles}
do
if [ "$ENABLE_SSO" != "true" ]; then
if [[ "$file" == *"-sso.yml" || "$file" == "docker-compose-keycloak.yml" ]]; then
continue
fi
fi

if [[ "$file" == *"-bahmniemr.yml" && "$RUN_WITH_BAHMNI_EMR" == "false" ]]; then
continue
fi

if [[ "$file" == *"-openmrs.yml" && "$RUN_WITH_BAHMNI_EMR" == "true" ]]; then
continue
fi

export dockerComposeFilesCLIOptions="$dockerComposeFilesCLIOptions -f ../$file"
done

Expand Down

0 comments on commit 2a9d924

Please sign in to comment.