Skip to content

Commit

Permalink
addres comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Jan 13, 2025
1 parent 8750385 commit 7cea4ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
21 changes: 8 additions & 13 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,6 @@ steps:
env:
- PIPELINE_CONFIG=/workspace/docker/config
- DWH_ROOT=/workspace/e2e-tests/controller-spark/dwh
- FHIRDATA_SINKFHIRSERVERURL=
- FHIRDATA_GENERATEPARQUETFILES=true
- FHIRDATA_CREATEHIVERESOURCETABLES=true
- FHIRDATA_CREATEPARQUETVIEWS=true
- FHIRDATA_SINKDBCONFIGPATH=config/hapi-postgres-config_local_views.json
args: [ '-f', './docker/compose-controller-spark-sql-single.yaml', 'up',
'--force-recreate', '-d' ]
waitFor: ['Create views database']
Expand Down Expand Up @@ -228,11 +223,11 @@ steps:
env:
- SINK_SERVER_NAME=sink-server-controller
- SINK_SERVER_PORT=9001
waitFor: ['Bring down controller and Spark containers for FHIR server to FHIR server sync']
waitFor: ['Bring down controller and Spark containers']

# Spinning up only the pipeline controller for FHIR server to FHIR server sync
- name: 'docker/compose'
id: 'Bring up the pipeline controller'
id: 'Bring up the pipeline controller for for FHIR server to FHIR server sync'
env:
- PIPELINE_CONFIG=/workspace/docker/config
- DWH_ROOT=/workspace/e2e-tests/controller-spark/dwh
Expand All @@ -243,27 +238,27 @@ steps:
- FHIRDATA_SINKDBCONFIGPATH=
args: [ '-f', './docker/compose-controller-spark-sql-single.yaml', 'up',
'--force-recreate', '--no-deps' , '-d' ,'pipeline-controller' ]
waitFor: ['Launch HAPI FHIR Sink Server Controller']
waitFor: ['Launch HAPI FHIR Sink Server']

- name: '${_REPOSITORY}/e2e-tests/controller-spark:${_TAG}'
id: 'Run E2E Test for Dockerized Controller in FHIR server to FHIR server sync mode'
waitFor: ['Bring up the pipeline controller']
waitFor: ['Bring up the pipeline controller for for FHIR server to FHIR server sync']
env:
- DWH_TYPE="FHIR"

- name: 'docker/compose'
id: 'Bring down controller'
id: 'Bring down the pipeline controller'
args: [ '-f', './docker/compose-controller-spark-sql-single.yaml', 'down' ,'-v']
waitFor: ['Run E2E Test for Dockerized Controller for FHIR server to FHIR server sync']
waitFor: ['Run E2E Test for Dockerized Controller in FHIR server to FHIR server sync mode']

- name: 'docker/compose'
id: 'Turn down HAPI Source Server'
args: [ '-f', './docker/hapi-compose.yml', 'down' ]
waitFor: ['Bring down controller']
waitFor: ['Bring down the pipeline controller']

- name: 'docker/compose'
id: 'Turn down FHIR Sink Server Controller for e2e tests'
args: [ '-f', './docker/sink-compose.yml', '-p', 'sink-server-controller', 'down' ,'-v']
args: [ '-f', './docker/sink-compose.yml', '-p', 'sink-server', 'down' ,'-v']
env:
- SINK_SERVER_NAME=sink-server-controller
- SINK_SERVER_PORT=9001
Expand Down
8 changes: 4 additions & 4 deletions docker/compose-controller-spark-sql-single.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ services:
environment:
- JAVA_OPTS=$JAVA_OPTS
# This is to override the values in the default config.
- FHIRDATA_SINKFHIRSERVERURL=$FHIRDATA_SINKFHIRSERVERURL
- FHIRDATA_SINKFHIRSERVERURL=$(FHIRDATA_SINKFHIRSERVERURL:-}
- FHIRDATA_GENERATEPARQUETFILES=${FHIRDATA_GENERATEPARQUETFILES:-true}
- FHIRDATA_CREATEHIVERESOURCETABLES=$FHIRDATA_CREATEHIVERESOURCETABLES
- FHIRDATA_CREATEPARQUETVIEWS=$FHIRDATA_CREATEPARQUETVIEWS
- FHIRDATA_SINKDBCONFIGPATH=$FHIRDATA_SINKDBCONFIGPATH
- FHIRDATA_CREATEHIVERESOURCETABLES=${FHIRDATA_CREATEHIVERESOURCETABLES:-true}
- FHIRDATA_CREATEPARQUETVIEWS=${FHIRDATA_CREATEPARQUETVIEWS:-true}
- FHIRDATA_SINKDBCONFIGPATH=${FHIRDATA_SINKDBCONFIGPATH:-config/hapi-postgres-config_local_views.json}
ports:
- '8090:8080'
networks:
Expand Down

0 comments on commit 7cea4ae

Please sign in to comment.