Skip to content

Docker instructions for developing satellite apps incorrect #8879

@flacoman91

Description

@flacoman91

It looks like the directions for developing satellite apps like ccdb5-api is incorrect, or the docker configs need to be updated to set PYTHONPATH

https://cfpb.github.io/consumerfinance.gov/related-projects/#using-docker

I cloned the ccdb5-api project in develop-apps and it never got picked up when i docker compose up

I dug around some more and found that PYTHONPATH was never getting updated with the dir and also this script
https://github.com/cfpb/consumerfinance.gov/blob/main/extend-environment.sh
to update the path never gets called anywhere.

I was able to resolve this by manually inserting in the Dockerfile
ENV PYTHONPATH=${APP_HOME}/develop-apps/ccdb5-api:${APP_HOME}/cfgov

or also updating docker-compose.override.yml

environment:
   - PYTHONPATH=/src/consumerfinance.gov/develop-apps/ccdb5-api/:/src/consumerfinance.gov/cfgov

I tried a few ways of calling extend-environment.sh but the PYTHONPATH doesn't ever persist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions