-
Notifications
You must be signed in to change notification settings - Fork 45
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
Code packaging files in parent directories #16
Comments
You raise good points here. I have thought about how to support code-packaging of parent directories. I haven't come up great solutions at the moment, but raising this issue encourages me to continue to search for improvements. There are some tricky aspects of recreating exactly the right directory structure in the docker container that have been a blocker thus far. However, there is one workaround that might help you. You can use the environment variable cd /my_project/workflows/workflow_1/
export REDUN_CONFIG=../../.redun
redun run main.py main I think one remaining challenge for your case is that You likely already consider this, but if the common code doesn't change much, you can install it directly in the docker image to avoid relying on redun's code packaging. |
Thank you for the suggestions! I do agree that Perhaps the following could work as a proper fix.
This would at least solve my issue, I could just set |
I have a codebase that is structured as follows:
When working on either
/my_project/workflows/workflow_1/
or/my_project/workflows/workflow_2/
, I may need to make changes to the library code in/my_project/library/
. Redun's code packaging feature seems not to work on patterns that contain absolute paths or relative paths that contain..
. It seems to be correctly zipping up the matched code, but not unzipping it in a location that makes it usable when executing the task.Simply moving the
.redun/
directory to the project root is not a good option because different workflows may need differentredun.ini
files, so a single such file at the root can't really work.A workaround I have identified is to cd to the root of the project, and then use
-c
to explicitly reference the redun config dir to use:But this makes the command excessively verbose in my opinion.
Overall the code packaging feature is a huge productivity win over rebuilding a docker image every time. Cheers!
The text was updated successfully, but these errors were encountered: