-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add example of custom paths in Compose #6
Conversation
Thanks for the idea, but unfortunately, this does not work on a fresh run. The real issue is that mounting a volume into To test the described behavior, try the
|
Yes, you are right about that. Sorry, I missed that. What if we modify the initialization to first check if the Something like below in the # Obtain the latest version of ComfyUI if not already present
cd ${COMFYUSER_DIR}/mnt
if [ ! -d "ComfyUI" ]; then
echo "== Cloning ComfyUI"
git clone https://github.com/comfyanonymous/ComfyUI.git ComfyUI || error_exit "ComfyUI clone failed"
else
# If ComfyUI dir is present but does not contain a requirements.txt file.
if [ ! -f "ComfyUI/requirements.txt" ]; then
echo "== Cloning ComfyUI"
mkdir comfyUITemp || error_exit "Failed to create comfyUITemp folder"
git clone https://github.com/comfyanonymous/ComfyUI.git comfyUITemp || error_exit "ComfyUI clone failed"
shopt -s dotglob
cp -r comfyUITemp/* ComfyUI || error_exit "Failed to copy files from comfyUITemp to ComfyUI"
shopt -u dotglob
rm -rf comfyUITemp || error_exit "Failed to remove comfyUITemp folder"
else
echo "== ComfyUI directory already exists and is up-to-date."
fi
fi I tried this approach and it works. |
I have finished a new release, so I will continue to investigate how to integrate this proposed solution. I am trying to make sure that none of those bind mounts will create issues with the manager trying to update Comfy, for example. |
I'm sorry for the delay. There might be a solution in the CLI: use the I still would like to add some |
This is not a valid CLI option.
An alternate solution will have me look at:
|
My test Comfy installation is older than 5 days ... when this option was added |
Testable version in https://github.com/mmartial/ComfyUI-Nvidia-Docker/tree/basedir |
Integrated the |
Updated the README with optional mappings for models, workflows, and outputs. This helps new Docker users set custom paths, allowing safe container reset(by deleting run folder) without losing important files.
Also, thanks for creating the docker image ⭐.