Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 2.42 KB

docker-compose.md

File metadata and controls

58 lines (37 loc) · 2.42 KB

Running the UDAP Dotnet Tutorial with Docker Compose

To run the UDAP Dotnet Tutorial project using Docker Compose, follow these steps:

Prerequisites

Ensure you have the following installed on your machine:

Asp.NET Development Certificate for TLS

Extract the existing localhost dev cert certificate from the user keystore. The certificate friendly name is ASP.NET Core HTTPS development certificate. During extraction include the private key and set the password to password. Save the certificate in ${USERPROFILE}/.aspnet/https. This will allow docker-compose.override.yml to mount the certificate into the container.

EMR Direct UDAP Client Certificate

If you have a EMR Direct issued client certificate you would like to add to the UdapEd Container can pick it up then save the certificate in the ./CertificateStore folder. This will allow docker-compose.yml to mount the certificate into the udaped container.

Second you will need to supply a password to open the P12 file via the SampleC environment variable. Create a docker-compose.override.yml file in the root of the repository with the following content:

services:
      
  udaped:    
    environment:
      - sampleKeyC=yourpassword

Steps

  1. Clone the Repository

    Clone the udap-dotnet repository to your local machine if you haven't already:

  2. Build the solution

From root of repository run the following command: dotnet build

  1. Build and Run the Docker Containers

    From the root of the repository, run the following command: docker-compose up

  2. Access the Services

    Once the containers are up and running, you can access the various services using the following URLs:

Additional Notes

  • If you need to regenerate certificates during the tutorial, follow the instructions in the README.md file to delete the existing database and restart the services.
  • If you have Visual Studio installed, you can open the project and run the docker-compose.dcproj project to start the services.