Compare commits

2 Commits

Author SHA1 Message Date
theunpleasantowl
e4bfa892bf Merge 563eb47d07 into 802d0bcd68 2024-11-19 20:36:10 -05:00
theunpleasantowl
563eb47d07 Add Forge
Add Automatic1111-Forge:
https://github.com/lllyasviel/stable-diffusion-webui-forge
2024-11-19 20:28:13 -05:00
10 changed files with 14 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
FROM alpine/git:latest as download FROM alpine/git:2.36.2 as download
COPY clone.sh /clone.sh COPY clone.sh /clone.sh
@@ -16,7 +16,7 @@ RUN . /clone.sh google_blockly_prototypes https://github.com/lllyasviel/google_b
RUN . /clone.sh stable-diffusion-webui-assets https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets.git 6f7db241d2f8ba7457bac5ca9753331f0c266917 RUN . /clone.sh stable-diffusion-webui-assets https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets.git 6f7db241d2f8ba7457bac5ca9753331f0c266917
FROM pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime FROM pytorch/pytorch:2.3.1-cuda12.1-cudnn8-runtime
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1 ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
@@ -54,11 +54,11 @@ ENV LD_PRELOAD=libtcmalloc.so
COPY . /docker COPY . /docker
#RUN \ RUN \
# mv ${ROOT}/style.css ${ROOT}/user.css && \ # mv ${ROOT}/style.css ${ROOT}/user.css && \
# one of the ugliest hacks I ever wrote \ # one of the ugliest hacks I ever wrote \
#sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.10/site-packages/gradio/routes.py && \ sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.10/site-packages/gradio/routes.py && \
#git config --global --add safe.directory '*' git config --global --add safe.directory '*'
WORKDIR ${ROOT} WORKDIR ${ROOT}
ENV NVIDIA_VISIBLE_DEVICES=all ENV NVIDIA_VISIBLE_DEVICES=all

View File

@@ -1,15 +1,11 @@
#!/bin/bash #!/bin/bash
set -Eeox pipefail set -Eeuox pipefail
mkdir -p /repositories/"$1" mkdir -p /repositories/"$1"
cd /repositories/"$1" cd /repositories/"$1"
git init git init
git remote add origin "$2" git remote add origin "$2"
if [ -n "$3" ]; then
git fetch origin "$3" --depth=1 git fetch origin "$3" --depth=1
git reset --hard "$3" git reset --hard "$3"
fi
rm -rf .git rm -rf .git

3
services/AUTOMATIC1111/Dockerfile Executable file → Normal file
View File

@@ -30,10 +30,9 @@ WORKDIR /
RUN --mount=type=cache,target=/root/.cache/pip \ RUN --mount=type=cache,target=/root/.cache/pip \
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git && \ git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git && \
cd stable-diffusion-webui && \ cd stable-diffusion-webui && \
git reset --hard v1.10.1 && \ git reset --hard v1.9.4 && \
pip install -r requirements_versions.txt pip install -r requirements_versions.txt
RUN pip install -U typing_extensions
ENV ROOT=/stable-diffusion-webui ENV ROOT=/stable-diffusion-webui

6
services/AUTOMATIC1111/clone.sh Executable file → Normal file
View File

@@ -1,15 +1,11 @@
#!/bin/bash #!/bin/bash
set -Eeox pipefail set -Eeuox pipefail
mkdir -p /repositories/"$1" mkdir -p /repositories/"$1"
cd /repositories/"$1" cd /repositories/"$1"
git init git init
git remote add origin "$2" git remote add origin "$2"
if [ -n "$3" ]; then
git fetch origin "$3" --depth=1 git fetch origin "$3" --depth=1
git reset --hard "$3" git reset --hard "$3"
fi
rm -rf .git rm -rf .git

0
services/AUTOMATIC1111/config.py Executable file → Normal file
View File

3
services/comfy/Dockerfile Executable file → Normal file
View File

@@ -1,4 +1,4 @@
FROM pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1 ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
@@ -9,6 +9,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \ git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \
cd ${ROOT} && \ cd ${ROOT} && \
git checkout master && \ git checkout master && \
git reset --hard 276f8fce9f5a80b500947fb5745a4dde9e84622d && \
pip install -r requirements.txt pip install -r requirements.txt
WORKDIR ${ROOT} WORKDIR ${ROOT}

0
services/comfy/extra_model_paths.yaml Executable file → Normal file
View File

0
services/download/Dockerfile Executable file → Normal file
View File

0
services/download/checksums.sha256 Executable file → Normal file
View File

0
services/download/links.txt Executable file → Normal file
View File