Skip to content

Commit

Permalink
chore: install dev container comfystream in edit mode (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliteprox authored Feb 18, 2025
1 parent 7ea9d93 commit 0119f59
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/bin/bash

chmod +x /workspace/comfystream/docker/entrypoint.sh
cd /workspace/comfystream

# Install Comfystream in editable mode.
/workspace/comfystream/docker/entrypoint.sh --editable

# Create a symlink to the entrypoint script.
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

0 comments on commit 0119f59

Please sign in to comment.