kuberay icon indicating copy to clipboard operation
kuberay copied to clipboard

[Bug] working_dir in RayService can only pull from https link?

Open james-tn opened this issue 2 years ago • 3 comments

Search before asking

  • [X] I searched the issues and found no similar issues.

KubeRay Component

ray-operator

What happened + What you expected to happen

I am testing ray serve using the ray service sample . It worked when the work_dir points to a github archive zip file but the service failed to deploy when it pointed to a local directory such as "./script". The folder contains the same content I pushed to github.

Reproduction script

Point the working_dir to a local directory

Anything else

No response

Are you willing to submit a PR?

  • [ ] Yes I am willing to submit a PR!

james-tn avatar Aug 29 '22 15:08 james-tn

/cc @simon-mo @brucez-anyscale

Jeffwan avatar Aug 31 '22 00:08 Jeffwan

Yeah, I think it is how it works. Since Ray Service runs in k8s cluster, it cannot read local files as you directly run Ray Serve locally. So it supports github, or it supports s3. @simon-mo Correct me if I am wrong.

brucez-anyscale avatar Aug 31 '22 01:08 brucez-anyscale

If the "local directory" means a directory in the docker image, then it should work!

simon-mo avatar Sep 02 '22 22:09 simon-mo

Feel free to reopen this issue if you have any further questions.

kevin85421 avatar Jun 23 '23 21:06 kevin85421