-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Kafka workers approach * Initial work for background tasks * Kafka setup updates * Task runner and project cleanup * CI fixes
- Loading branch information
Showing
22 changed files
with
29,167 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
POSTMAN_COLLECTION= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,14 +84,14 @@ jobs: | |
build-args: NODE_AUTH_TOKEN=${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Pull containers | ||
run: docker-compose -f ci.docker-compose.yml pull shr-fhir openhim-core mongo-db newman | ||
run: docker-compose -f ci.docker-compose.yml pull shr-fhir openhim-core mongo-db newman kafka zookeeper | ||
|
||
- name: Cache containers | ||
uses: satackey/[email protected] | ||
continue-on-error: true | ||
|
||
- name: Start containers | ||
run: docker-compose -f ci.docker-compose.yml up -d shr-fhir mongo-db openhim-core | ||
run: docker-compose -f ci.docker-compose.yml up -d shr-fhir mongo-db openhim-core kafka zookeeper | ||
|
||
- name: Load openhim config | ||
run: docker-compose -f ci.docker-compose.yml up -d openhim-config | ||
|
@@ -106,13 +106,16 @@ jobs: | |
- name: Run SHR image | ||
run: docker-compose -f ci.docker-compose.yml up -d shr | ||
|
||
- name: Sleep for 10 seconds | ||
run: sleep 10s | ||
- name: Sleep for 30 seconds | ||
run: sleep 30s | ||
shell: bash | ||
|
||
- name: Show SHR Log | ||
run: docker-compose -f "ci.docker-compose.yml" logs shr | ||
|
||
- name: Show kafka Log | ||
run: docker-compose -f "ci.docker-compose.yml" logs kafka | ||
|
||
- name: Check openhim-core | ||
run: curl -sSk https://localhost:8080/heartbeat | ||
|
||
|
@@ -135,6 +138,12 @@ jobs: | |
POSTMAN_COLLECTION: https://www.getpostman.com/collections/2ee8ebff39c078bac256 | ||
run: docker-compose -f ci.docker-compose.yml up --exit-code-from newman newman | ||
|
||
- name: Show SHR Log | ||
run: docker-compose -f "ci.docker-compose.yml" logs shr | ||
|
||
- name: Show kafka Log | ||
run: docker-compose -f "ci.docker-compose.yml" logs kafka | ||
|
||
- name: Stop containers | ||
if: always() | ||
run: docker-compose -f "dev.docker-compose.yml" down | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
{ | ||
"app": { | ||
"port": 3000, | ||
"mllpPort": 2575 | ||
"mllpPort": 3001 | ||
}, | ||
"mediator": { | ||
"api": { | ||
"username": "[email protected]", | ||
"password": "openhim-password", | ||
"password": "openhim", | ||
"apiURL": "https://openhim-core:8080", | ||
"trustSelfSigned": true, | ||
"urn": "urn:mediator:shared-health-record" | ||
} | ||
}, | ||
"fhirServer": { | ||
"mpiURL": "http://openhim-core:5000/CR/fhir", | ||
"baseURL": "http://shr-fhir:8080/fhir", | ||
"simulateResulting": false | ||
"mpiURL": "https://openhim-core:5000/CR/fhir", | ||
"baseURL": "http://shr-fhir:8080/fhir" | ||
}, | ||
"fhirConverterUrl": "http://localhost:5001/72f" | ||
|
||
"fhirConverterUrl": "https://openhim-core:5000/72f", | ||
"taskRunner": { | ||
"brokers" : ["kafka:9092"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"app": { | ||
"port": 3000, | ||
"mllpPort": 2575 | ||
"mllpPort": 3001 | ||
}, | ||
"mediator": { | ||
"api": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.