diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 7b85d678..00000000 --- a/.dockerignore +++ /dev/null @@ -1,5 +0,0 @@ -# See https://docs.docker.com/engine/reference/builder/#dockerignore-file -# Put files here that you don't want copied into your bundle's invocation image -.gitignore -Dockerfile.tmpl -.docker-sync/ \ No newline at end of file diff --git a/.env b/.env.example similarity index 66% rename from .env rename to .env.example index 98b368c9..8bbd9c03 100644 --- a/.env +++ b/.env.example @@ -1,2 +1,3 @@ VSAC_API_KEY=#Replace_me_with_your_api_key COMPOSE_PROJECT_NAME=rems_dev +PORTER_ALLOW_DOCKER_HOST_ACCESS=true \ No newline at end of file diff --git a/DockerDevSetupGuideForMacOS.md b/DockerDevSetupGuideForMacOS.md index ff563381..e28bed48 100644 --- a/DockerDevSetupGuideForMacOS.md +++ b/DockerDevSetupGuideForMacOS.md @@ -287,19 +287,21 @@ Reference: https://docker-sync.readthedocs.io/en/latest/getting-started/commands 1. Go to http://localhost:3000/ehr-server/reqgen. 2. Click **Patient Select** button in upper left. -3. Find **William Oster** in the list of patients and click the dropdown menu next to his name. -4. Select **E0470** in the dropdown menu. -5. Click anywhere in the row for William Oster. -6. Click **Submit** at the bottom of the page. -7. After several seconds you should receive a response in the form of two **CDS cards**: - - **Respiratory Assist Device** - - **Positive Airway Pressure Device** -8. Select **Order Form** on one of those CDS cards. -9. If you are asked for login credentials, use **alice** for username and **alice** for password. -10. A webpage should open in a new tab, and after a few seconds, a questionnaire should appear. -11. Fill out questionnaire and hit next - -13. Submit PAS request to https://davinci-prior-auth.logicahealth.org/fhir +3. Find **Jon Snow** in the list of patients and click the dropdown menu next to his name. +4. Select **2183126 - Turalio 200 MG Oral Capsule** in the dropdown menu. +5. Click anywhere in the row to select Jon Snow. +6. After several seconds you should receive a response in the form of a **CDS card**: + - **Turalio 200 MG Oral Capsule has REMS** +7. Click **Submit** at the bottom of the page. +8. After several seconds you should receive a response in the form of a **CDS card**: + - **Drug Has REMS: Documentation Required.** +9. Select **Patient Enrollment Form** on the returned CDS card. +10. If you are asked for login credentials, use **alice** for username and **alice** for password. +11. A webpage should open in a new tab, and after a few seconds, a questionnaire should appear. +12. Fill out questionnaire and hit **Proceed to Prior Auth** + +14. Submit PAS request to https://davinci-prior-auth.logicahealth.org/fhir with **OAuth** enabled +15. Subscribe to updates using **WebSockets** or another option Congratulations! DRLS is fully installed and ready for you to use! diff --git a/DockerProdSetupGuideForMacOS.md b/DockerProdSetupGuideForMacOS.md index 34f28d00..9b400b34 100644 --- a/DockerProdSetupGuideForMacOS.md +++ b/DockerProdSetupGuideForMacOS.md @@ -223,21 +223,20 @@ Note: The project will keep running in the background when you "ctrl + c" out of 1. Go to http://localhost:3000/ehr-server/reqgen. 2. Click **Patient Select** button in upper left. -3. Find **William Oster** in the list of patients and click the dropdown menu next to his name. -4. Select **E0470** in the dropdown menu. -5. Click anywhere in the row for William Oster. -6. Click **Submit** at the bottom of the page. -7. After several seconds you should receive a response in the form of two **CDS cards**: - - **Respiratory Assist Device** - - **Positive Airway Pressure Device** -8. Select **Order Form** on one of those CDS cards. -9. If you are asked for login credentials, use **alice** for username and **alice** for password. -10. A webpage should open in a new tab, and after a few seconds, a questionnaire should appear. -11. Fill out questionnaire and hit next - -13. Submit PAS request to https://davinci-prior-auth.logicahealth.org/fhir - -Congratulations! DRLS is fully installed and ready for you to use! - -## Troubleshooting docker-sync -Reference: https://docker-sync.readthedocs.io/en/latest/troubleshooting/sync-stopping.html +3. Find **Jon Snow** in the list of patients and click the dropdown menu next to his name. +4. Select **2183126 - Turalio 200 MG Oral Capsule** in the dropdown menu. +5. Click anywhere in the row to select Jon Snow. +6. After several seconds you should receive a response in the form of a **CDS card**: + - **Turalio 200 MG Oral Capsule has REMS** +7. Click **Submit** at the bottom of the page. +8. After several seconds you should receive a response in the form of a **CDS card**: + - **Drug Has REMS: Documentation Required.** +9. Select **Patient Enrollment Form** on the returned CDS card. +10. If you are asked for login credentials, use **alice** for username and **alice** for password. +11. A webpage should open in a new tab, and after a few seconds, a questionnaire should appear. +12. Fill out questionnaire and hit **Proceed to Prior Auth** + +14. Submit PAS request to https://davinci-prior-auth.logicahealth.org/fhir with **OAuth** enabled +15. Subscribe to updates using **WebSockets** or another option + +Congratulations! DRLS is fully installed and ready for you to use! \ No newline at end of file diff --git a/docker-compose-porter.yml b/docker-compose-porter.yml index f679c054..cbdd8d41 100644 --- a/docker-compose-porter.yml +++ b/docker-compose-porter.yml @@ -13,21 +13,21 @@ services: volumes: - keycloak-data:/opt/jboss/keycloak/standalone/data/ # - './resources/ClientFhirServerRealm.json:/resources/ClientFhirServerRealm.json' - image: codexrems/keycloak + image: codexrems/keycloak:REMSv0.1 # Create test-ehr container test-ehr: # Name of our service container_name: rems_porter_test-ehr ports: # Port binding to host from docker container - '8080:8080' # Bind port 3000 of host to 3000 of container - image: codexrems/test-ehr + image: codexrems/test-ehr:REMSv0.1 environment: - DOCKER_DEV_PROFILE=true # Create crd container crd: # Name of our service - image: codexrems/crd + image: codexrems/crd:REMSv0.1 container_name: rems_porter_crd ports: # Port binding to host from docker container - "8090:8090" # Bind port 3000 of host to 3000 of container @@ -37,7 +37,7 @@ services: # Create crd request generator container crd-request-generator: # Name of our service - image: codexrems/crd-request-generator + image: codexrems/crd-request-generator:REMSv0.1 container_name: rems_porter_crd-request-generator environment: - REACT_APP_REMS_CONFIG=true @@ -48,20 +48,20 @@ services: # Create dtr container dtr: # Name of our service - image: codexrems/dtr + image: codexrems/dtr:REMSv0.1 container_name: rems_porter_dtr ports: # Port binding to host from docker container - "3005:3005" # Bind port 3000 of host to 3000 of container # # Create rems container rems: # Name of our service - image: codexrems/rems + image: codexrems/rems:REMSv0.1 container_name: rems_porter_rems ports: # Port binding to host from docker container - "9015:9015" # Bind port 3000 of host to 3000 of container pharmacy-information-system: # Name of our service - image: codexrems/pharmacy-information-system + image: codexrems/pharmacy-information-system:REMSv0.1 container_name: rems_porter_pharmacy-information-system environment: - PORT=3010 diff --git a/porter.yaml b/porter.yaml index 213700bd..812bd425 100644 --- a/porter.yaml +++ b/porter.yaml @@ -26,16 +26,42 @@ build: install: - docker-compose: - description: Docker Compose up + description: docker-compose up arguments: - -f - docker-compose-porter.yml - up + + +upgrade: + - docker-compose: + description: docker-compose pull + arguments: + - -f + - docker-compose-porter.yml + - pull + - docker-compose: + description: docker-compose build + arguments: + - -f + - docker-compose-porter.yml + - build + - --pull + - --no-cache + - docker-compose: + description: docker-compose up + arguments: + - -f + - docker-compose-porter.yml + - up + - --force-recreate ps: - docker-compose: description: Docker Compose ps arguments: + - -f + - docker-compose-porter.yml - ps uninstall: @@ -46,3 +72,12 @@ uninstall: - docker-compose-porter.yml - down - --remove-orphans + +customActions: +stop: + - docker-compose: + description: Stop Running Application Images + arguments: + - -f + - docker-compose-porter.yml + - stop \ No newline at end of file