Skip to content

Commit

Permalink
fix: create compose.override.yaml file and update command in .github …
Browse files Browse the repository at this point in the history
…workflow
  • Loading branch information
SimonKonar authored and RadovanTomik committed Jan 23, 2024
1 parent a442ce7 commit 2135ef2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
11 changes: 11 additions & 0 deletions .github/comp_override/compose.override.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.9'
services:
fhir-module:
environment:
PARSING_MAP_PATH: "/opt/fhir-module/util/default_csv_map.json"
MATERIAL_TYPE_MAP_PATH: "/opt/fhir-module/util/default_csv_material_type_map.json"
RECORDS_FILE_TYPE: "csv"
volumes:
- type: bind
source: "test/csv_data"
target: "/opt/records"
18 changes: 2 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,22 +171,8 @@ jobs:
- name: Create docker network
run: docker network create system-test

- name: Generate compose.override.yaml file
run: |
echo "version: '3.9'" > compose.override.yaml
echo "services:" >> compose.override.yaml
echo " fhir-module:" >> compose.override.yaml
echo " environment:" >> compose.override.yaml
echo " PARSING_MAP_PATH: \"/opt/fhir-module/util/default_csv_map.json\"" >> compose.override.yaml
echo " MATERIAL_TYPE_MAP_PATH: \"/opt/fhir-module/util/default_csv_material_type_map.json\"" >> compose.override.yaml
echo " RECORDS_FILE_TYPE: \"csv\"" >> compose.override.yaml
echo " volumes:" >> compose.override.yaml
echo " - type: bind" >> compose.override.yaml
echo " source: \"test/csv_data\"" >> compose.override.yaml
echo " target: \"/opt/records\"" >> compose.override.yaml
- name: Run sandbox in dev env
run: docker compose --profile dev up -d
- name: Run sandbox in dev env (use compose.override.yaml to work with csv files)
run: docker compose -f compose.yaml -f .github/comp_override/compose.override.yaml --profile dev up -d

- name: Wait for Blaze
run: .github/scripts/wait-for-url.sh http://localhost:8080/health
Expand Down

0 comments on commit 2135ef2

Please sign in to comment.