Skip to content

Commit

Permalink
chore: edit existing gitignore and pre-create branch
Browse files Browse the repository at this point in the history
  • Loading branch information
tinovyatkin committed Jan 17, 2025
1 parent 7a35039 commit 7b86882
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
3 changes: 0 additions & 3 deletions ComfyUI/DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ docker run \
## Getting changes from the container

```sh
git stash --all --include-untracked
git checkout -b my-setup-changes
git stash apply
git add --all
git commit -m 'Getting all my changes'
git archive -o update.zip HEAD $(git diff --submodule=diff --name-only HEAD HEAD^)
Expand Down
17 changes: 14 additions & 3 deletions ComfyUI/Dockerfile.local-cpu
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,22 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv pip install -r requirements.txt

# Clones the ComfyUI Manager repository and checks out the latest release
# remove gitignore to allow adding submodule into custom_nodes
RUN rm .gitignore
# edit gitignore entries
RUN for l in custom_nodes user models web web_custom_versions; do sed -i "/$l/d" .gitignore ; done
# add more gitignore entries
RUN <<EOF cat >> .gitignore
user/*.log
user/default/ComfyUI-Manager/cache/
user/default/ComfyUI-Manager/channels.list
EOF

RUN git submodule add $COMFYUI_MANAGER_REPO custom_nodes/ComfyUI-Manager \
&& cd custom_nodes/ComfyUI-Manager \
&& git checkout tags/$COMFYUI_MANAGER_VERSION
# edit gitignore entries - see https://github.com/ltdrdata/ComfyUI-Manager/blob/main/.gitignore
RUN for l in config.ini code-workspace snapshots startup-scripts pip_overrides openart_key matrix_auth youml comfyworkflows_sharekey; \
do sed -i "/$l/d" custom_nodes/ComfyUI-Manager/.gitignore ; done
# add more gitignore entries
RUN --mount=type=cache,target=/root/.cache/uv \
uv pip install -r custom_nodes/ComfyUI-Manager/requirements.txt

Expand All @@ -70,7 +81,7 @@ model_download_by_agent = False
EOF

# commit current state so we can trace changes
RUN git add . && git commit -m "chore: initial setup"
RUN git add . && git commit -m "chore: initial setup" && git checkout -b container/dev

# Expose the port the ComfyUI runs on
EXPOSE 8188
Expand Down

0 comments on commit 7b86882

Please sign in to comment.