#One thing maybe worth noting is that my

1 messages · Page 1 of 1 (latest)

wise spindle
#

Not an issue, but it seems like your pipeline is in dagger_project/app.py and assuming you're loading /src with src = client.host().directory(".") as in the guide, then paths are relative to the dir you're executing the pipeline in. Are you not executing then the pipeline with python dagger_project/app.py from the root of the project?

#

The guide also installs dependencies with pip install -e .[test]. Here, [test] is an extra that the FastAPI project defines. Does your project have it or did you update that command in your pipeline?

mellow sparrow
#

@spiral copper might make sense to move the discussion to this separate thread to reduce spam within the main channel. I think the problem is that you have the dependencies only in the poetry section but the default example installs with pip instead of poetry (e.g. the example from fastapi https://github.com/tiangolo/fastapi/blob/master/pyproject.toml#L52 ). When this issue is solved I think you will face a second problem: you have created a recursive call of the test.py (probably pytest will fail immediately as dagger is not installed in the container)

GitHub

FastAPI framework, high performance, easy to learn, fast to code, ready for production - fastapi/pyproject.toml at master · tiangolo/fastapi

spiral copper
mellow sparrow
spiral copper
#

Would be great to see your example, thanks

mellow sparrow
#

in my case I am creating a dev container which has access to my docker socket

mellow sparrow
spiral copper
#

If you want I can push my simple test to github and I can share it with you

Would you mind sharing that with me when you have a chance? Thanks.

mellow sparrow
mellow sparrow
#

I have changed a bit the project structure. To test it just run "python daggerfiles/simple_pytest.py"