Replies: 3 comments 1 reply
-
@timelf123 why not just mount directly in the script set -e
# Deforum
echo "Installing Deforum dependencies"
apt-get install wget ffmpeg -yq
mkdir -vp /data/Deforum
ln -sT /data/Deforum "${ROOT}/models/Deforum"
echo "Done installing Deforum dependencies" what is the advantage of re-using the |
Beta Was this translation helpful? Give feedback.
-
thanks again for the idea. For anyone else coming here later: I landed on this (added test to only create symlink if one doesn't exist): set -e
echo "> Deforum dependencies"
# ffmpeg for gif/mp4 in webui
apt-get install wget ffmpeg -yq
# mount for persistence
mkdir -vp /data/Deforum
test -h ! /data/Deforum && ln -sT /data/Deforum "${ROOT}/models/Deforum"
echo "< Deforum dependencies" |
Beta Was this translation helpful? Give feedback.
-
@timelf123: It is probably working well right now. I'd like to let you know that you might have problems later and why. |
Beta Was this translation helpful? Give feedback.
-
Not sure how you want to handle extension dependencies if at all... But people are using Deforum in auto's ui currently, the models need to be downloaded every time the container is rebuilt.
What is missing from the Deforum extension experience:
MOUNTS["${ROOT}/models/Deforum"]="/data/Deforum"
to store the models usedEDIT:
I just realized I can solve missing dependecies with a script
data/config/auto/startup.sh
:entrypoint.sh
- switched custom script and mounting logicAre there adverse side effects from making the custom script run before the mounter? I'd guess you'd prefer to source custom mount paths from a
startup.sh
file rather than defining them in the entrypoint? In that case, switching the order of the mounting/startup script allows MOUNT points to be added since the startup.sh is sourcedBeta Was this translation helpful? Give feedback.
All reactions