Hi all, Can anyone tell me how to pass python depe...
# prefect-community
r
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
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
Can you please share any references for this
a
r
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
all you need for CI in 2.0 is to set PREFECT_API_KEY and PREFECT_API_URL env variables
r
@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
Copy code
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
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
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:
Copy code
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
try using the Prefect base image, this will most likely solve your problem
r
okay, thanks
🙌 1