dazzling-gigabyte-17650
10/31/2023, 5:37 PMpyflyte run --remote --image localhost:30000/image/test-image:latest test_file.py run_test
Flyte finds the image, but can't find my test_file.py within the image.
I get
ModuleNotFoundError: No module named 'test_file'
whenever I try to run it.
It works without the --image flag, but whenever I try to use my custom image it fails. If I run
pyflyte run test_file.py run_test
within the image it works out of the box without needing to modify any envs/change folder.
I'm not sure if I missed something or missunderstood how I'm supposed to work with custom images.
My custom docker-image in my latest test is just mimicing the behaviour of https://github.com/flyteorg/flytesnacks/blob/master/examples/basics/Dockerfilesparse-advantage-22780
10/31/2023, 6:16 PM@task(container_image="localhost:30000/esmfold:latest", environment={"PYTHONPATH": "/root"}, requests=Resources(cpu="7", mem="28Gi"))
def run_esmfold(sequences: list[str]) -> list[FlyteFile]:
...
dazzling-gigabyte-17650
10/31/2023, 9:02 PMthankful-minister-83577
dazzling-gigabyte-17650
11/02/2023, 12:51 PMdazzling-gigabyte-17650
11/02/2023, 1:11 PMdazzling-gigabyte-17650
11/02/2023, 2:52 PMthankful-minister-83577