Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds config overrides and images to docker #219

Merged
merged 4 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,724 changes: 2,724 additions & 0 deletions distro/configuration/ampathforms/structured_soap_note_v1.1.json

Large diffs are not rendered by default.

Binary file not shown.
2 changes: 1 addition & 1 deletion docker-compose-ohri-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
environment:
SPA_PATH: /openmrs/spa
API_URL: /openmrs
SPA_CONFIG_URLS: /openmrs/spa/ohri-config.json
SPA_CONFIG_URLS: /openmrs/spa/config.json
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/"]
timeout: 10s
Expand Down
4 changes: 2 additions & 2 deletions docker-compose-ohri-working.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ services:
environment:
SPA_PATH: /openmrs/spa
API_URL: /openmrs
SPA_CONFIG_URLS: /openmrs/spa/ohri-config.json
SPA_CONFIG_URLS: /openmrs/spa/config.json
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/"]
timeout: 10s
depends_on:
- backend
# OHRI customizations
#volumes:
# - ./frontend/ohri-config.json:/usr/share/nginx/html/ohri-config.json
# - ./frontend/config.json:/usr/share/nginx/html/config.json

backend:
image: histacoohri/ohri-working-backend-2_6:next
Expand Down
7 changes: 6 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ ARG CACHE_BUST
RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} assemble --manifest --mode config --config spa-assemble-config.json --target ./spa
RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa
RUN if [ ! -f ./spa/index.html ]; then echo 'Build failed. Please check the logs above for details. This may have happened because of an update to a library that OpenMRS depends on.'; exit 1; fi
COPY ohri-config.json ./spa/ohri-config.json
COPY images/ampath-logo.png ./spa/images/ampath-logo.png
COPY images/favicon.ico ./spa/images/favicon.ico
COPY images/logo.png ./spa/images/logo.png
COPY images/logo_with_tagline.svg ./spa/images/logo_with_tagline.svg
COPY images/logoo.png ./spa/images/logoo.png
COPY config.json ./spa/config.json

#--------------------------------------------
# Runtime Stage - Published Image
Expand Down
Loading
Loading