Skip to content

Commit 0119f59

Browse files
authored
chore: install dev container comfystream in edit mode (yondonfu#68)
1 parent 7ea9d93 commit 0119f59

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.devcontainer/post-create.sh

+5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#!/bin/bash
2+
23
chmod +x /workspace/comfystream/docker/entrypoint.sh
34
cd /workspace/comfystream
45

6+
# Install Comfystream in editable mode.
7+
/workspace/comfystream/docker/entrypoint.sh --editable
8+
9+
# Create a symlink to the entrypoint script.
510
echo 'alias prepare_examples="/workspace/comfystream/docker/entrypoint.sh --download-models --build-engines"' >> ~/.bashrc
611
echo -e "\e[32mContainer ready! Run 'prepare_examples' to download models and build engines for example workflows.\e[0m"
712

docker/entrypoint.sh

100644100755
+8
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ if [ "$1" = "--build-engines" ]; then
4444
shift
4545
fi
4646

47+
if [ "$1" = "--editable" ]; then
48+
cd /workspace/comfystream
49+
conda activate comfystream
50+
pip install -e .
51+
shift
52+
fi
53+
4754
# Install npm packages if needed
4855
cd /workspace/comfystream/ui
4956
if [ ! -d "node_modules" ]; then
@@ -52,6 +59,7 @@ fi
5259

5360
if [ "$1" = "--server" ]; then
5461
/usr/bin/supervisord -c /etc/supervisor/supervisord.conf
62+
shift
5563
fi
5664

5765
cd /workspace/comfystream

0 commit comments

Comments
 (0)