-
Notifications
You must be signed in to change notification settings - Fork 126
Description
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.