-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Sisco/docker allow relative paths for invokeai data #5344
Sisco/docker allow relative paths for invokeai data #5344
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the proposal. I believe we had it like this at some point, but removed it because the usage was unclear, and it caused issues for those who ran invoke both in and outside of docker.
Perhaps we could solve this by introducing a new env var CONTAINER_INVOKEAI_ROOT
, defaulting to /invokeai
? This way behaviour of INVOKEAI_ROOT
remains the same between bare-metal and docker setups, and the new env var can be used if there's a need to change the root path in container.
something like:
source: ${INVOKEAI_ROOT:-~/invokeai}
target: ${CONTAINER_INVOKEAI_ROOT:-/invokeai}
Would that work - thoughts?
But wait, isn't the Edit So that would leave just a few options here:
Maybe it would be better to separate the concept of the "container" from "invoke", so instead of
The major points here are:
|
Sounds good. May I ask that we name it |
done! |
Co-authored-by: Eugene Brodsky <[email protected]>
7d7afd3
to
70896c7
Compare
What type of PR is this? (check all applicable)
Have you discussed this change with the InvokeAI team?
Have you updated all relevant documentation?
Description
This PR removes the docker-compose absolute path restriction for the data path of InvokeAI.
The compose file will now bind the external Invoke data directory using the following envar values (in order of priority):
INVOKEAI_LOCAL_ROOT
INVOKEAI_ROOT
~/invokeai
Since this change provides a fallback to the original
INVOKEAI_ROOT
variable, it should not impact existing users.Related Tickets & Documents
QA Instructions, Screenshots, Recordings
Merge Plan
Added/updated tests?
[optional] Are there any post deployment tasks we need to perform?