Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ storybook-static
resources/seeds/initBundle.json

resources/init-bundles/
resources/ig2/*.tgz
40 changes: 39 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,42 @@
services:
ig-downloader:
image: curlimages/curl:latest
volumes:
- ./resources/ig2:/output/ig2
entrypoint: >
sh -c "
[ -f /output/ig2/0.2.0-ci-build.tgz ] && exit 0;
curl -fsSL -o /tmp/package.tgz https://build.fhir.org/ig/UP-Manila-SILab/ph-core/package.tgz &&
cp /tmp/package.tgz /output/ig2/0.2.0-ci-build.tgz
"
sdc:
image: bedasoftware/fhir-sdc:2.1.0a6
depends_on:
devbox:
condition: service_healthy
env_file:
- ./env/sdc
patch-init-bundle:
image: alpine:latest
depends_on:
build-seeds:
condition: service_completed_successfully
entrypoint: sh
command:
- -c
- >-
apk add --no-cache jq -q &&
jq '(.entry[] | select(.resource.resourceType == "AidboxMigration") | .request) |= {method: "POST", url: "/AidboxMigration"}'
/app/init-bundles/initBundle.json > /tmp/initBundle.json &&
mv /tmp/initBundle.json /app/init-bundles/initBundle.json
volumes:
- ./resources/init-bundles:/app/init-bundles
devbox:
image: healthsamurai/aidboxone:stable
depends_on:
devbox-db:
condition: service_healthy
build-seeds:
patch-init-bundle:
condition: service_completed_successfully
healthcheck:
test: curl --fail http://localhost:8080/health || exit 1
Expand All @@ -26,6 +51,7 @@ services:
- AIDBOX_LICENSE
volumes:
- ./resources/init-bundles:/resources/init-bundles
- ./resources/ig2:/resources/ig2:ro
devbox-db:
image: "postgres:18"
env_file:
Expand All @@ -37,9 +63,14 @@ services:
retries: 10
build-seeds:
image: bedasoftware/fhirsnake:latest
depends_on:
ig-downloader:
condition: service_completed_successfully
command:
- export
- --input
- /app/resources/ig2
- --input
- /app/resources/ig0
- --input
- /app/resources/ig1
Expand All @@ -52,15 +83,21 @@ services:
volumes:
- ./resources/ig0:/app/resources/ig0:ro
- ./resources/ig1:/app/resources/ig1:ro
- ./resources/ig2:/app/resources/ig2:ro
- ./resources/seeds:/app/resources/seeds:ro
- ./resources/init-bundles:/app/init-bundles
env_file:
- ./env/build-seeds
watch-seeds:
image: bedasoftware/fhirsnake:latest
depends_on:
ig-downloader:
condition: service_completed_successfully
command:
- watch
- --input
- /app/resources/ig2
- --input
- /app/resources/ig0
- --input
- /app/resources/ig1
Expand All @@ -73,6 +110,7 @@ services:
volumes:
- ./resources/ig0:/app/resources/ig0:ro
- ./resources/ig1:/app/resources/ig1:ro
- ./resources/ig2:/app/resources/ig2:ro
- ./resources/seeds:/app/resources/seeds:ro
env_file:
- ./env/build-seeds
Expand Down
Empty file added resources/ig2/.gitkeep
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resourceType: AidboxMigration
id: ph-core-ig-aidbox-migration
status: to-run
action: far-migration-fhir-package-install
params:
resourceType: Parameters
parameter:
- name: package
valueString: 'file:///resources/ig2/0.2.0-ci-build.tgz'