-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat(#114): Create OpenMRS Mediator #115
base: main
Are you sure you want to change the base?
Changes from 1 commit
5e4451f
4e3de0f
534b1fd
50a3f3f
494ae3d
8c3c4fe
6ed106d
76e9012
ffaa7e0
9b7978d
ac83b03
1fb1351
d9e1c13
449de72
613bf6b
6d03a4f
aba7c95
fda229f
f7a834d
dfe749d
6c3ff27
3eab817
0e38c83
d05968e
70aee07
6141ce8
5bb2eae
12e2a53
88f1014
7a5243c
3db5945
82e29ec
ee8e8dd
6d2c7d2
e91be25
c1cc023
f325edd
7470359
a0fc96b
86bdc31
59f607b
1a5be52
d6db1d6
7d279c1
d5b0252
ef558a2
d8cb295
e3f1a4c
dfe2107
59bf494
0f7ef52
61ccd62
5be2b00
8abfa10
3cc6a55
3216ce7
71df8de
1ec5181
670f3a5
0bca7ae
dcb5e61
40716e8
1de75e4
c9354ff
7b89788
f361ca4
9290c0f
85d0484
539f03e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
FROM node:16-alpine | ||
|
||
RUN apk add g++ make py3-pip git curl chromium | ||
|
||
WORKDIR /scripts/configurator | ||
|
||
COPY ./configurator ./ | ||
COPY ./configurator/package.json ./package.json | ||
COPY ./configurator/package-lock.json ./package-lock.json | ||
|
||
RUN npm install | ||
|
||
WORKDIR /scripts/cht-config | ||
|
||
COPY ../cht-config ./ | ||
|
||
RUN npm install && npm install -g cht-conf && python -m pip install git+https://github.com/medic/[email protected]#egg=pyxform-medic | ||
witash marked this conversation as resolved.
Show resolved
Hide resolved
|
||
RUN npm install && npm install -g cht-conf | ||
|
||
WORKDIR /scripts/configurator | ||
|
||
COPY ./configurator ./ | ||
|
||
WORKDIR /scripts | ||
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it make sense to add this to the startup.sh? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another thing about openmrs when testing locally it is now working. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. latest commit should fix the error. but if openmrs is not running, sync doesn't do anything the next problem is that this image has a very old version of the fhir module that doesn't work right, and its missing the cht identifier types; I fixed that locally by downloading the latest fhir omod from https://addons.openmrs.org/show/org.openmrs.module.openmrs-fhir2-module and running |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
version: '2.1' | ||
|
||
services: | ||
openmrs-mysql: | ||
restart: "always" | ||
image: mysql:5.6 | ||
command: "mysqld --character-set-server=utf8 --collation-server=utf8_general_ci" | ||
environment: | ||
MYSQL_DATABASE: ${MYSQL_DB:-openmrs} | ||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-Admin123} | ||
MYSQL_USER: ${MYSQL_USER:-openmrs} | ||
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-Admin123} | ||
ports: | ||
- "3306:3306" | ||
healthcheck: | ||
test: "exit 0" | ||
volumes: | ||
- openmrs-referenceapplication-mysql-data:/var/lib/mysql | ||
networks: | ||
- cht-net | ||
|
||
openmrs: | ||
restart: "always" | ||
image: openmrs/openmrs-reference-application-distro:demo | ||
depends_on: | ||
- openmrs-mysql | ||
ports: | ||
- "8090:8080" | ||
environment: | ||
DB_DATABASE: ${MYSQL_DB:-openmrs} | ||
DB_HOST: openmrs-referenceapplication-mysql | ||
DB_USERNAME: ${MYSQL_USER:-openmrs} | ||
DB_PASSWORD: ${MYSQL_PASSWORD:-Admin123} | ||
DB_CREATE_TABLES: 'true' | ||
DB_AUTO_UPDATE: 'true' | ||
MODULE_WEB_ADMIN: 'true' | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost:8080/openmrs/"] | ||
timeout: 20s | ||
volumes: | ||
- openmrs-referenceapplication-data:/usr/local/tomcat/.OpenMRS/ | ||
- /usr/local/tomcat/.OpenMRS/modules/ # do not store modules in data | ||
- /usr/local/tomcat/.OpenMRS/owa/ # do not store owa in data | ||
networks: | ||
- cht-net | ||
|
||
volumes: | ||
openmrs-referenceapplication-mysql-data: | ||
openmrs-referenceapplication-data: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also still needed @witash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I am getting this error without it: