-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core feature] Allow to specify the working dir for a container image #4638
Comments
🤖 Hey there @vkaiser-mb! I'm Dosu, your friendly neighborhood bot. 🤖 I'm here to help you tackle bugs, answer your questions, and guide you on your journey to becoming a contributor. While we wait for a human maintainer to join us, consider me your guide on the side. Let's debug and learn together, shall we? 🚀 Thank you for your detailed feature request. I understand that you would like to have the ability to specify a working directory for each container image in a Flyte workflow. This feature would indeed provide more flexibility when working with different container images that have different directory structures. Currently, as you've noted, Flyte does not support specifying a working directory for a container image. The Your proposed changes to the As a maintainer of the Flyte repository, I can't create pull requests or issues. However, I would recommend you to create a feature request issue in the Flyte repository detailing your proposal. This would allow the Flyte community to discuss and potentially implement this feature. Please let me know if you have any other questions or need further clarification. I'm here to help! Best regards, SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
We talked about this in slack and there was consensus around letting the working dir be set in the docker images instead. Closing this issue for now, please re-open if you feel that this might be worth more discussion. |
@eapolinario but we need to make a change to not set any working for as default right |
How exactly would I specify the working dir in the docker image? Will it take the dockers CWD? Would I specify a Env var? Since I did not check the mechanics, I wonder how the upload works. (My assumption was that is the reason for specifying the working dir in advance. In our workaround we also needed to modify the PYTHONPATH env var.) Arent those things that would need to be adapted in the flyte code? |
@eapolinario Happy new year! Will there be another Github issue to resolve this in your proposed way? |
@vkaiser-mb - @eapolinario was actually out on vacation and is back tomorrow. I am re-opening the issue to actually make the change in flytekit. So the change is as follows
We will use this issue to track these 2 changes |
Awesome! Thanks. |
Motivation: Why do you think this is important?
Imagine you have a workflow with 2 tasks A and B. Both tasks have different container images.
Currently, the working dir is per default "/root".
Both container images dont have this folder accessible. Instead it would be great if you could specify for every image the according working dir that is compatible with the image.
You can change the working dir via the CLI, but this has two downsides:
Note: In the local usecase, the specified working dir can be ignored, similar like the container_image is ignored.
Goal: What should the final outcome look like, ideally?
and
of course it could be compatible with the old interface and still allow do specify only images if no working dir modification is needed:
Describe alternatives you've considered
To avoid nesting, Imagespec could also have the option of working dir directly:
Propose: Link/Inline OR Additional context
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: