From b6818cabfd717e4f99f9877d57c2fe8ee442a377 Mon Sep 17 00:00:00 2001 From: Ryan Crichton Date: Mon, 4 Dec 2023 09:49:50 +0200 Subject: [PATCH] Add initial config for default recipes --- .env.cluster | 3 ++- Dockerfile | 2 +- cdr-dw.env | 22 +++++++++++++++++++++ cdr.env | 21 ++++++++++++++++++++ config.yaml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++-- mpi.env | 20 +++++++++++++++++++ purge-local.sh | 3 ++- 7 files changed, 118 insertions(+), 5 deletions(-) create mode 100644 cdr-dw.env create mode 100644 cdr.env create mode 100644 mpi.env diff --git a/.env.cluster b/.env.cluster index 0c501267..1e4b52c6 100644 --- a/.env.cluster +++ b/.env.cluster @@ -82,7 +82,8 @@ GF_SERVER_DOMAIN=grafana.domain # Client Registry - JeMPI JEMPI_WEB_INSTANCES=3 -REACT_APP_JEMPI_BASE_URL=https://jempi-api.domain/JeMPI +REACT_APP_JEMPI_BASE_API_HOST=https://jempi-api.domain +REACT_APP_JEMPI_BASE_API_PORT=50000 JEMPI_SESSION_SECURE=true JEMPI_REPMGR_PARTNER_NODES=jempi-postgresql-01,jempi-postgresql-02,jempi-postgresql-03 JEMPI_ASYNC_RECEIVER_INSTANCES=1 diff --git a/Dockerfile b/Dockerfile index 44d3cef5..054883a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM openhie/package-base:2.1.3 +FROM openhie/package-base:2.1.7 # Install yq RUN curl -L https://github.com/mikefarah/yq/releases/download/v4.23.1/yq_linux_amd64 -o /usr/bin/yq diff --git a/cdr-dw.env b/cdr-dw.env new file mode 100644 index 00000000..7f82439c --- /dev/null +++ b/cdr-dw.env @@ -0,0 +1,22 @@ +# General +CLUSTERED_MODE=false + +# Log +DEBUG=0 +BASHLOG_FILE=0 +BASHLOG_FILE_PATH=platform.log + +# Message Bus - Kafka +# !NOTE: Topics should comma seperated, optional include partion and repliction values +# e.g. :: -> test:3:2 (defaults to :3:1) +KAFKA_TOPICS=2xx,2xx-async,errors,reprocess,3xx,patient,observation,JeMPI-audit-trail + +# SSO +KC_OPENHIM_SSO_ENABLED=true +OPENHIM_CONSOLE_SHOW_LOGIN=false +# KC_JEMPI_SSO_ENABLED=true +KC_JEMPI_SSO_ENABLED=false +# REACT_APP_JEMPI_BASE_API_PORT=50001 +REACT_APP_JEMPI_BASE_API_PORT=50000 +KC_SUPERSET_SSO_ENABLED=true +KC_GRAFANA_SSO_ENABLED=true diff --git a/cdr.env b/cdr.env new file mode 100644 index 00000000..f6b52de5 --- /dev/null +++ b/cdr.env @@ -0,0 +1,21 @@ +# General +CLUSTERED_MODE=false + +# Log +DEBUG=0 +BASHLOG_FILE=0 +BASHLOG_FILE_PATH=platform.log + +# Message Bus - Kafka +# !NOTE: Topics should comma seperated, optional include partion and repliction values +# e.g. :: -> test:3:2 (defaults to :3:1) +KAFKA_TOPICS=2xx,2xx-async,errors,reprocess,3xx,patient,observation,JeMPI-audit-trail + +# SSO +KC_OPENHIM_SSO_ENABLED=true +OPENHIM_CONSOLE_SHOW_LOGIN=false +# KC_JEMPI_SSO_ENABLED=true +KC_JEMPI_SSO_ENABLED=false +# REACT_APP_JEMPI_BASE_API_PORT=50001 +REACT_APP_JEMPI_BASE_API_PORT=50000 +KC_GRAFANA_SSO_ENABLED=true diff --git a/config.yaml b/config.yaml index 04c40d90..ef5dfdcc 100644 --- a/config.yaml +++ b/config.yaml @@ -1,6 +1,6 @@ projectName: platform -image: jembi/platform:2.5.0 -logPath: /tmp/logs +image: jembi/platform:latest +logPath: /tmp packages: - interoperability-layer-openhim @@ -23,3 +23,51 @@ packages: - client-registry-jempi - identity-access-manager-keycloak - openhim-mapping-mediator + +profiles: + - name: cdr-dw + packages: + - interoperability-layer-openhim + - reverse-proxy-nginx + - fhir-datastore-hapi-fhir + - message-bus-kafka + - job-scheduler-ofelia + - kafka-mapper-consumer + - kafka-unbundler-consumer + - analytics-datastore-clickhouse + - dashboard-visualiser-superset + - monitoring + - mpi-mediator + - client-registry-jempi + - identity-access-manager-keycloak + - openhim-mapping-mediator + envFiles: + - cdr-dw.env + + - name: cdr + packages: + - interoperability-layer-openhim + - reverse-proxy-nginx + - fhir-datastore-hapi-fhir + - message-bus-kafka + - job-scheduler-ofelia + - monitoring + - mpi-mediator + - client-registry-jempi + - identity-access-manager-keycloak + - openhim-mapping-mediator + envFiles: + - cdr.env + + - name: mpi + packages: + - interoperability-layer-openhim + - reverse-proxy-nginx + - message-bus-kafka + - job-scheduler-ofelia + - monitoring + - client-registry-jempi + - identity-access-manager-keycloak + - openhim-mapping-mediator + envFiles: + - mpi.env diff --git a/mpi.env b/mpi.env new file mode 100644 index 00000000..a41c5697 --- /dev/null +++ b/mpi.env @@ -0,0 +1,20 @@ +# General +CLUSTERED_MODE=false + +# Log +DEBUG=0 +BASHLOG_FILE=0 +BASHLOG_FILE_PATH=platform.log + +# Message Bus - Kafka +# !NOTE: Topics should comma seperated, optional include partion and repliction values +# e.g. :: -> test:3:2 (defaults to :3:1) +KAFKA_TOPICS=2xx,reprocess,3xx + +# SSO +KC_OPENHIM_SSO_ENABLED=true +OPENHIM_CONSOLE_SHOW_LOGIN=false +# KC_JEMPI_SSO_ENABLED=true +KC_JEMPI_SSO_ENABLED=false +# REACT_APP_JEMPI_BASE_API_PORT=50001 +REACT_APP_JEMPI_BASE_API_PORT=50000 diff --git a/purge-local.sh b/purge-local.sh index b06018b7..7a6ed528 100755 --- a/purge-local.sh +++ b/purge-local.sh @@ -2,5 +2,6 @@ docker service rm $(docker service ls -q) docker rm -f $(docker ps -aq) -docker volume prune -f +docker volume prune -af docker config rm $(docker config ls -q) +docker network prune -f