Skip to content
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

chore: install dev container comfystream in edit mode #68

Merged
merged 2 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#!/bin/bash

# Install Comfystream in editable mode.
pip install -e /workspace/comfystream

# Create a symlink to the entrypoint script.
chmod +x /workspace/comfystream/docker/entrypoint.sh
cd /workspace/comfystream
/workspace/comfystream/docker/entrypoint.sh --editable
echo 'alias prepare_examples="/workspace/comfystream/docker/entrypoint.sh --download-models --build-engines"' >> ~/.bashrc
echo -e "\e[32mContainer ready! Run 'prepare_examples' to download models and build engines for example workflows.\e[0m"

Expand Down
8 changes: 8 additions & 0 deletions docker/entrypoint.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ if [ "$1" = "--build-engines" ]; then
shift
fi

if [ "$1" = "--editable" ]; then
cd /workspace/comfystream
conda activate comfystream
pip install -e .
shift
fi

# Install npm packages if needed
cd /workspace/comfystream/ui
if [ ! -d "node_modules" ]; then
Expand All @@ -52,6 +59,7 @@ fi

if [ "$1" = "--server" ]; then
/usr/bin/supervisord -c /etc/supervisor/supervisord.conf
shift
fi

cd /workspace/comfystream
Expand Down