Repository navigation
[runtime env] Move container related code to runtime env - #19067
Conversation
| def __init__(self, tmp_dir: str): | ||
| self._tmp_dir = tmp_dir |
There was a problem hiding this comment.
rename this to mount dir? or ray_tmp_dir so it's more clear about what is it used for
There was a problem hiding this comment.
I have renamed it to ray_tmp_dir, and added comment.
|
|
||
| def __init__(self, | ||
| command_prefix: List[str] = None, | ||
| container_command_prefix: List[str] = None, |
There was a problem hiding this comment.
please don't change this. you can modify self.py_exectuable or self.command_prefix in ContainerManager.setup instead of adding a new entry.
There was a problem hiding this comment.
Thanks for your suggestion. I use self.py_exectuable instead of container_command_prefix
… into move_container_env_to_runtime
|
@simon-mo Please take a look if you have a moment, Thanks. And should we revert the ci test about |
9833895 to
f902126
Compare
|
@chenk008 if you can turn on that test that would be greatly appreciated! I disabled it because one day podman just broke and I can't find a way fixing it. |
| Language.Value(args.language)) | ||
| # NOTE(chenk008): if worker starts in a container, this worker-shim-pid | ||
| # is required. It is compatible to add this for all worker. | ||
| remaining_args.append("--worker-shim-pid={}".format(os.getpid())) |
There was a problem hiding this comment.
i assume this will be removed soon?
|
Please fix the merge conflict when ping me when tests pass. Thanks! |
Co-authored-by: Simon Mo <[email protected]>
|
@simon-mo Sorry for delayed response. I think |
|
@chenk008 thanks! just to confirm, you will try to re-enable the work-in-container test as well right? |
Why are these changes needed?
We will use runtime env to manager worker runtime. This pull request is trying to make the container related code as a runtime env plugin.
Related issue number
Checks
scripts/format.shto lint the changes in this PR.