NCIOCPL / drug-dictionary-api

NCI Drug Dictionary API
0 stars 3 forks source link

Update docker configuration #59

Closed blairlearn closed 3 years ago

blairlearn commented 3 years ago

The docker configuration for running integration tests locally needs to be updated.

Parent Issue: Update the drug dictionary to .Net 3.1 #54

docker-compose.yml

In the api service, add a new top-level volumes property:

        volumes:
            # Project root
            - ../..:/app
            # Integration configuration files we don't want in the source tree.
            - ../../integration-tests/docker-drug-api/api/runtime/appsettings.inttest.json:/app/src/NCI.OCPL.Api.DrugDictionary/appsettings.inttest.json
            - ../../integration-tests/docker-drug-api/api/runtime/hosting.json:/app/src/NCI.OCPL.Api.DrugDictionary/hosting.json
            # Use the user's existing GitHub credentials
            - ~/.nuget/NuGet/NuGet.Config:/root/.nuget/NuGet/NuGet.Config

API service's Dockerfile

integration-tests/README.md

Update .gitignore

A side-effect of mapping the project directory into a Docker container is that the integration appsettings and hosting configuration files are copied into the source tree.

Add these lines at the end of the file

# Files mapped by integration tests
src/NCI.OCPL.Api.DrugDictionary/appsettings.inttest.json
src/NCI.OCPL.Api.DrugDictionary/hosting.json

Sub-Tasks

Notes