Skip to content

Commit

Permalink
OZ-348: Mount JAR camel routes + configs binary
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliouzbett committed Jan 4, 2024
1 parent 96b29cd commit 69fdacb
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 32 deletions.
17 changes: 10 additions & 7 deletions docker-compose-odoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ services:
condition: service_started
env_file: eip.env
environment:
- DB_EVENT_DESTINATIONS=${DB_EVENT_DESTINATIONS_ODOO}
- EIP_DB_NAME=${EIP_DB_NAME_ODOO}
- EIP_DB_USER=${EIP_DB_USER_ODOO}
- EIP_DB_PASSWORD=${EIP_DB_PASSWORD_ODOO}
- DB_EVENT_DESTINATIONS_ODOO=${DB_EVENT_DESTINATIONS_ODOO}
- EIP_DB_NAME_ODOO=${EIP_DB_NAME_ODOO}
- EIP_DB_USER_ODOO=${EIP_DB_USER_ODOO}
- EIP_DB_PASSWORD_ODOO=${EIP_DB_PASSWORD_ODOO}
- ODOO_DATABASE=${ODOO_DATABASE}
- ODOO_USER=${ODOO_USER}
- ODOO_PASSWORD=${ODOO_PASSWORD}
Expand All @@ -79,19 +79,22 @@ services:
- ODOO_CUSTOMER_DOB_FIELD=${ODOO_CUSTOMER_DOB_FIELD}
- ODOO_CUSTOMER_WEIGHT_FIELD=${ODOO_CUSTOMER_WEIGHT_FIELD}
- EMR_WEIGHT_CONCEPT=${EMR_WEIGHT_CONCEPT}
- OPENMRS_IDENTIFIER_TYPE_UUID=${OPENMRS_IDENTIFIER_TYPE_UUID}
- ODOO_ENABLE_EXTRA_CUSTOMER_FIELDS_ROUTE=${ODOO_ENABLE_EXTRA_CUSTOMER_FIELDS_ROUTE}
- ODOO_ENABLE_EXTRA_QUOTATION_FIELDS_ROUTE=${ODOO_ENABLE_EXTRA_QUOTATION_FIELDS_ROUTE}
- ODOO_URL=http://odoo:8069
image: mekomsolutions/eip-client
- OPENMRS_URL=http://openmrs:8080/openmrs
- EIP_PROFILE=prod
- EIP_WATCHED_TABLES=patient,person_name,person_address,patient_identifier,orders,test_order,drug_order
image: mekomsolutions/eip-client:2.0.0
networks:
ozone:
aliases:
- eip-client-odoo
- eip-odoo-openmrs
restart: unless-stopped
volumes:
- "${EIP_ODOO_OPENMRS_PROPERTIES_PATH}:/config"
- "${EIP_ODOO_OPENMRS_ROUTES_PATH}:/routes"
- "${EIP_ODOO_OPENMRS_ROUTES_PATH}:/eip-client/routes"
- eip-home-odoo:/eip-home

postgresql:
Expand Down
29 changes: 18 additions & 11 deletions docker-compose-senaite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,30 @@ services:
condition: service_started
env_file: eip.env
environment:
- DB_EVENT_DESTINATIONS=${DB_EVENT_DESTINATIONS_SENAITE}
- SENAITE_USERNAME=${SENAITE_ADMIN_USER}
- SENAITE_PASSWORD=${SENAITE_ADMIN_PASSWORD}
- EIP_DB_NAME=${EIP_DB_NAME_SENAITE}
- EIP_DB_USER=${EIP_DB_USER_SENAITE}
- EIP_DB_PASSWORD=${EIP_DB_PASSWORD_SENAITE}
- SENAITE_SERVER_URL=https://${SENAITE_HOSTNAME}/senaite
- SENAITE_SERVER_USER=${SENAITE_ADMIN_USER}
- SENAITE_SERVER_PASSWORD=${SENAITE_ADMIN_PASSWORD}
- OPENMRS_SERVER_URL=http://openmrs:8080/openmrs
- OPENMRS_SERVER_USER=${OPENMRS_USER}
- OPENMRS_SERVER_PASSWORD=${OPENMRS_PASSWORD}
- OPENMRS_RESULTS_ENCOUNTER_TYPE_UUID=${RESULTS_ENCOUNTER_TYPE_UUID}
- OPENMRS_IDENTIFIER_TYPE_UUID=${OPENMRS_IDENTIFIER_TYPE_UUID}
- OPENMRS_CONCEPT_COMPLEX_UUID=${CONCEPT_COMPLEX_UUID}
- BAHMNI_TEST_ORDER_TYPE_UUID=${BAHMNI_TEST_ORDER_TYPE_UUID}
- SENAITE_URL=http://senaite:8080
image: mekomsolutions/eip-client
- EIP_PROFILE=prod
- EIP_WATCHED_TABLES=patient,person_name,person_address,patient_identifier,orders,test_order
- EIP_DB_NAME_SENAITE=${EIP_DB_NAME_SENAITE}
- EIP_DB_USER_SENAITE=${EIP_DB_USER_SENAITE}
- EIP_DB_PASSWORD_SENAITE=${EIP_DB_PASSWORD_SENAITE}
- DB_EVENT_DESTINATIONS_SENAITE=${DB_EVENT_DESTINATIONS_SENAITE}
image: mekomsolutions/eip-client:2.0.0
networks:
ozone:
aliases:
- eip-client-senaite
restart: unless-stopped
volumes:
- "${EIP_OPENMRS_SENAITE_PROPERTIES_PATH}:/config"
- "${EIP_OPENMRS_SENAITE_ROUTES_PATH}:/routes"
- "${EIP_OPENMRS_SENAITE_ROUTES_PATH}:/eip-client/routes"
- eip-home-senaite:/eip-home

mysql:
Expand All @@ -72,4 +79,4 @@ services:
volumes:
eip-home-senaite: ~
senaite-blobstorage: ~
senaite-filestorage: ~
senaite-filestorage: ~
20 changes: 12 additions & 8 deletions eip.env
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
#
# OAuth2-related variables. Defaults to empty when not explicitly set in the environment.
# MySQL configuration
#
MYSQL_ADMIN_USER=root
MYSQL_ADMIN_USER_PASSWORD=${MYSQL_ROOT_PASSWORD}

#
# Oauth2 configuration
#
OAUTH_CLIENT_SECRET=${OAUTH_CLIENT_SECRET:-}
OAUTH_ACCESS_TOKEN_URI=${OAUTH_ACCESS_TOKEN_URI:-}
OAUTH_ACCESS_TOKEN_URL=${OAUTH_ACCESS_TOKEN_URL:-}
OAUTH_ENABLED=${OAUTH_ENABLED:-}
OAUTH_CLIENT_ID=${OAUTH_CLIENT_ID:-}
OAUTH_CLIENT_SCOPE=${OAUTH_CLIENT_SCOPE:-}

#
# OpenMRS DB configuration
#
OPENMRS_DB_HOST=${OPENMRS_DB_HOST}
OPENMRS_DB_PORT=${OPENMRS_DB_PORT}
OPENMRS_DB_NAME=${OPENMRS_DB_NAME}
OPENMRS_DB_USER=${OPENMRS_DB_USER}
OPENMRS_DB_PASSWORD=${OPENMRS_DB_PASSWORD}
OPENMRS_USER=${OPENMRS_USER}
OPENMRS_PASSWORD=${OPENMRS_PASSWORD}
MYSQL_ADMIN_USER=root
MYSQL_ADMIN_USER_PASSWORD=${MYSQL_ROOT_PASSWORD}
RESULTS_ENCOUNTER_TYPE_UUID=${RESULTS_ENCOUNTER_TYPE_UUID}
CONCEPT_COMPLEX_UUID=${CONCEPT_COMPLEX_UUID}
OPENMRS_IDENTIFIER_TYPE_UUID=${OPENMRS_IDENTIFIER_TYPE_UUID}
OPENMRS_URL=http://openmrs:8080
8 changes: 2 additions & 6 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ function exportPaths () {
export ODOO_EXTRA_ADDONS=$DISTRO_PATH/binaries/odoo/addons
export ODOO_CONFIG_PATH=$DISTRO_PATH/configs/odoo/initializer_config/
export ODOO_CONFIG_FILE_PATH=$DISTRO_PATH/configs/odoo/config/odoo.conf
export EIP_ODOO_OPENMRS_ROUTES_PATH=$DISTRO_PATH/binaries/eip-odoo-openmrs/routes
export EIP_ODOO_OPENMRS_PROPERTIES_PATH=$DISTRO_PATH/configs/eip-odoo-openmrs/properties
export EIP_OPENMRS_SENAITE_ROUTES_PATH=$DISTRO_PATH/binaries/eip-openmrs-senaite/routes
export EIP_OPENMRS_SENAITE_PROPERTIES_PATH=$DISTRO_PATH/configs/eip-openmrs-senaite/properties
export EIP_ODOO_OPENMRS_ROUTES_PATH=$DISTRO_PATH/binaries/eip-odoo-openmrs
export EIP_OPENMRS_SENAITE_ROUTES_PATH=$DISTRO_PATH/binaries/eip-openmrs-senaite
export OPENMRS_FRONTEND_CONFIG_PATH=$DISTRO_PATH/configs/openmrs/frontend_config/
export SQL_SCRIPTS_PATH=$DISTRO_PATH/data/
export SUPERSET_CONFIG_PATH=$DISTRO_PATH/configs/superset/
Expand All @@ -45,9 +43,7 @@ function exportPaths () {
echo "→ ODOO_CONFIG_PATH=$ODOO_CONFIG_PATH"
echo "→ ODOO_CONFIG_FILE_PATH=$ODOO_CONFIG_FILE_PATH"
echo "→ EIP_ODOO_OPENMRS_ROUTES_PATH=$EIP_ODOO_OPENMRS_ROUTES_PATH"
echo "→ EIP_ODOO_OPENMRS_PROPERTIES_PATH=$EIP_ODOO_OPENMRS_PROPERTIES_PATH"
echo "→ EIP_OPENMRS_SENAITE_ROUTES_PATH=$EIP_OPENMRS_SENAITE_ROUTES_PATH"
echo "→ EIP_OPENMRS_SENAITE_PROPERTIES_PATH=$EIP_OPENMRS_SENAITE_PROPERTIES_PATH"
echo "→ OPENMRS_FRONTEND_CONFIG_PATH=$OPENMRS_FRONTEND_CONFIG_PATH"
echo "→ SQL_SCRIPTS_PATH=$SQL_SCRIPTS_PATH"
echo "→ SUPERSET_CONFIG_PATH=$SUPERSET_CONFIG_PATH"
Expand Down

0 comments on commit 69fdacb

Please sign in to comment.