Jesper Bruun Hansen
11/08/2022, 8:56 PMprefecthq/prefect:2-latest
as base image, that they can run locally? Iโm having hard time defining the ENTRYPOINT
Ryan Peden
11/08/2022, 8:59 PMJesper Bruun Hansen
11/08/2022, 9:00 PMFROM prefecthq/prefect:2-latest
COPY pip/requirements.txt pip/requirements.txt
RUN pip install -r pip/requirements.txt
COPY python/ python/
WORKDIR /python/src/main
ENTRYPOINT ["python", "listings.get_listings:run_pipeline()"]
Ryan Peden
11/08/2022, 9:06 PMdocker run -it my_image:my_tag bash
. Then from the shell I believe you could run python -c 'from listings.get_listings import run_pipeline; run_pipeline()'
ENTRYPOINT ["python", "-c", "'from listings.get_listings import run_pipeline; run_pipeline()'"
I haven't tested that yet, though. Going to give it a quick try now.Jesper Bruun Hansen
11/08/2022, 9:15 PMFROM prefecthq/prefect:2-latest
WORKDIR /home/root/
COPY pip/requirements.txt pip/requirements.txt
RUN pip install -r pip/requirements.txt
COPY python/ python/
WORKDIR /home/root/python/src/main
ENTRYPOINT ["python", "-m", "listings.get_listings"]
Ryan Peden
11/08/2022, 9:19 PMJesper Bruun Hansen
11/08/2022, 9:19 PMRyan Peden
11/08/2022, 9:27 PM/opt/prefect/flows
unless you tell it otherwise.python -m prefect.engine
which then pulls the flow information from the API based on the flow run ID, and runs the flow.Jesper Bruun Hansen
11/08/2022, 9:37 PMRyan Peden
11/08/2022, 9:41 PMJesper Bruun Hansen
11/08/2022, 9:43 PMRyan Peden
11/08/2022, 9:51 PMJesper Bruun Hansen
11/08/2022, 10:05 PMRyan Peden
11/08/2022, 10:14 PMAnna Geller
11/08/2022, 11:56 PMJesper Bruun Hansen
11/09/2022, 7:21 AM