https://prefect.io logo
c

Charles Leung

12/10/2020, 9:40 PM
Hey Team, I was testing a sample file from someone else that has some relative paths to configuration files. When i'm building using docker storage, and i specify the files={} keyword, what path should i put it in to be the same directory as where the flow is executing? edit - I'm using a base image of prefecthq/prefect docker image
n

nicholas

12/11/2020, 5:14 PM
Hi @Charles Leung - I think it makes more sense to put them somewhere concrete in the container and then add that location to the image's
PYTHONPATH
using
env_vars
- that way the extra files can be imported regardless of the flow's working directory. Otherwise the location for flows is
/opt/prefect/flows
by default
c

Charles Leung

12/11/2020, 9:07 PM
Ah... thanks for your reply. some of these relative paths are for config json files and not the py files unfortunately... not my design call 😞 but trying to do as least modifications as possible; is the execution 'entrypoint' also /opt/prefect/flows?
n

nicholas

12/11/2020, 9:08 PM
Ah I see - I believe that's the case so that should work still