https://prefect.io logo
Title
r

Raviraj Dixit

08/08/2022, 10:43 AM
Hi all, Can anyone tell me how to pass python dependence to Github storage? and is there a way we can pass pyproject.toml file to Github storage to install dependencies?
a

Anna Geller

08/08/2022, 11:29 AM
This is something you would need to do as part of your CI/CD - Storage only grabs the code from GitHub at runtime, it doesn't do CI/CD for you and doesn't package your dependencies
r

Raviraj Dixit

08/08/2022, 11:53 AM
Can you please share any references for this
a

Anna Geller

08/08/2022, 11:58 AM
r

Raviraj Dixit

08/08/2022, 12:00 PM
Thanks, I will go through it. Sorry, I am going off topic a bit. In version 2.0, I don't find the auth command to the API key
a

Anna Geller

08/08/2022, 12:32 PM
all you need for CI in 2.0 is to set PREFECT_API_KEY and PREFECT_API_URL env variables
r

Raviraj Dixit

08/11/2022, 9:16 AM
@Anna Geller, I facing a new problem now, with docker. Now I am adding new dependencies using the docker file, but when I register it, I get this error on prefect cloud log
Pod prefect-job-2c54386b-nbjj2 failed.
	Container 'flow' state: terminated
		Exit Code:: 1
		Reason: Error
I have checked with the old chats, so I am installing prefect 1.3.0 version Can you please tell me what I am missing here, if you want I can share the docker file.
a

Anna Geller

08/11/2022, 10:03 AM
Are you getting started now? I was talking about Prefect 2.0
For 1.0 you would need to follow similar approach to this blog post
There are millions of reasons why a pod may get terminated:) so definitely sharing more information would be useful
r

Raviraj Dixit

08/11/2022, 10:13 AM
I am still using version 1.0, when I am registering flow with dockerfile parameter, I am getting this error, but if I use python_dependencies instead of that then it is working. Sorry, somehow I am not able to attach a file, so I mentioned the code below, Dockerfile:
FROM python:3.8

WORKDIR /code

RUN pip install poetry

COPY poetry.lock pyproject.toml /code/

RUN poetry config virtualenvs.create false

RUN poetry install
I am still going through the perfect 2.0, maybe I will switch to that later.
Which blog post you are talking about for version 1.0?
a

Anna Geller

08/11/2022, 10:42 AM
try using the Prefect base image, this will most likely solve your problem
r

Raviraj Dixit

08/11/2022, 10:48 AM
okay, thanks
🙌 1