Skip to content

Commit

Permalink
'cu124's further break down installation steps
Browse files Browse the repository at this point in the history
  • Loading branch information
YanWenKun committed Nov 13, 2024
1 parent 5fc3c53 commit e13e9f1
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 52 deletions.
50 changes: 19 additions & 31 deletions comfy3d-pt25/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ libnpp-devel-12-4
RUN --mount=type=cache,target=/var/cache/zypp \
zypper --gpg-auto-import-keys \
install --no-confirm --no-recommends --auto-agree-with-licenses \
cuda-libraries-12-4 \
cuda-libraries-12-4

RUN --mount=type=cache,target=/var/cache/zypp \
zypper --gpg-auto-import-keys \
install --no-confirm --no-recommends --auto-agree-with-licenses \
cuda-libraries-devel-12-4

ENV PATH="${PATH}:/usr/local/cuda-12.4/bin" \

Check warning on line 60 in comfy3d-pt25/Dockerfile

View workflow job for this annotation

GitHub Actions / build-publish-comfy3d-pt25

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LD_LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

Check warning on line 60 in comfy3d-pt25/Dockerfile

View workflow job for this annotation

GitHub Actions / build-publish-comfy3d-pt25

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LIBRARY_PATH' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Expand Down Expand Up @@ -96,6 +100,12 @@ python312-scikit-learn \
python312-scipy \
python312-svglib \
python312-tqdm \
&& rm /usr/lib64/python3.12/EXTERNALLY-MANAGED \
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 100

RUN --mount=type=cache,target=/var/cache/zypp \
zypper --gpg-auto-import-keys \
install --no-confirm --auto-agree-with-licenses \
meshlab \
Mesa-libGL1 \
Mesa-libEGL-devel \
Expand All @@ -116,8 +126,6 @@ x265 \
google-noto-sans-fonts \
google-noto-sans-cjk-fonts \
google-noto-coloremoji-fonts \
&& rm /usr/lib64/python3.12/EXTERNALLY-MANAGED \
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 100 \
&& zypper remove --no-confirm libQt5Core5 # Temp fix for PyMeshLab

################################################################################
Expand Down Expand Up @@ -151,47 +159,27 @@ RUN --mount=type=cache,target=/root/.cache/pip \
&& pip install \
--upgrade pip wheel setuptools

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
--dry-run xformers==0.0.28.post3 torch==2.5.1 torchvision torchaudio \
--index-url https://download.pytorch.org/whl/cu124 \
--extra-index-url https://pypi.org/simple

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
--no-deps torch==2.5.1 \
--index-url https://download.pytorch.org/whl/cu124
ARG PIP_INDEX_URL="https://download.pytorch.org/whl/cu124"
ARG PIP_EXTRA_INDEX_URL="https://pypi.org/simple"

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
--no-deps torch==2.5.1 nvidia-cudnn-cu12 \
--index-url https://download.pytorch.org/whl/cu124
--dry-run xformers==0.0.28.post3 torch==2.5.1 torchvision torchaudio

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
--no-deps torch==2.5.1 nvidia-cublas-cu12 \
--index-url https://download.pytorch.org/whl/cu124
--no-deps torch==2.5.1

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
--no-deps torch==2.5.1 triton \
--index-url https://download.pytorch.org/whl/cu124
--no-deps xformers==0.0.28.post3 torch==2.5.1

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
--no-deps torch==2.5.1 nvidia-cusparse-cu12 \
--index-url https://download.pytorch.org/whl/cu124
xformers==0.0.28.post3 torch==2.5.1 torchvision torchaudio

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
--no-deps torch==2.5.1 nvidia-nccl-cu12 \
--index-url https://download.pytorch.org/whl/cu124

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
xformers==0.0.28.post3 torch==2.5.1 torchvision torchaudio \
--index-url https://download.pytorch.org/whl/cu124 \
--extra-index-url https://pypi.org/simple
ARG PIP_INDEX_URL=
ARG PIP_EXTRA_INDEX_URL=

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
Expand Down
22 changes: 15 additions & 7 deletions cu124-cn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ python312-scikit-learn \
python312-scipy \
python312-svglib \
python312-tqdm \
&& rm /usr/lib64/python3.12/EXTERNALLY-MANAGED \
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 100

RUN --mount=type=cache,target=/var/cache/zypp \
zypper --gpg-auto-import-keys \
install --no-confirm --auto-agree-with-licenses \
Mesa-libGL1 \
Mesa-libEGL-devel \
libgthread-2_0-0 \
Expand All @@ -68,9 +74,7 @@ x264 \
x265 \
google-noto-sans-fonts \
google-noto-sans-cjk-fonts \
google-noto-coloremoji-fonts \
&& rm /usr/lib64/python3.12/EXTERNALLY-MANAGED \
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 100
google-noto-coloremoji-fonts

################################################################################
# GCC 13
Expand Down Expand Up @@ -141,10 +145,14 @@ COPY builder-scripts/. /builder-scripts/
# 安装 ComfyUI 及扩展的依赖项
RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
-r /builder-scripts/pak3.txt \
&& pip install \
-r /builder-scripts/pak5.txt \
&& pip install \
-r /builder-scripts/pak3.txt

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
-r /builder-scripts/pak5.txt

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
-r /builder-scripts/pak7.txt \
&& pip list

Expand Down
22 changes: 15 additions & 7 deletions cu124-cn/Dockerfile-cn
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ python312-scikit-learn \
python312-scipy \
python312-svglib \
python312-tqdm \
&& rm /usr/lib64/python3.12/EXTERNALLY-MANAGED \
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 100

RUN --mount=type=cache,target=/var/cache/zypp \
zypper --gpg-auto-import-keys \
install --no-confirm --auto-agree-with-licenses \
Mesa-libGL1 \
Mesa-libEGL-devel \
libgthread-2_0-0 \
Expand All @@ -73,9 +79,7 @@ x264 \
x265 \
google-noto-sans-fonts \
google-noto-sans-cjk-fonts \
google-noto-coloremoji-fonts \
&& rm /usr/lib64/python3.12/EXTERNALLY-MANAGED \
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 100
google-noto-coloremoji-fonts

################################################################################
# GCC 13
Expand Down Expand Up @@ -148,10 +152,14 @@ COPY builder-scripts/. /builder-scripts/
# 安装 ComfyUI 及扩展的依赖项
RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
-r /builder-scripts/pak3.txt \
&& pip install \
-r /builder-scripts/pak5.txt \
&& pip install \
-r /builder-scripts/pak3.txt

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
-r /builder-scripts/pak5.txt

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
-r /builder-scripts/pak7.txt \
&& pip list

Expand Down
22 changes: 15 additions & 7 deletions cu124-megapak/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ python312-scikit-learn \
python312-scipy \
python312-svglib \
python312-tqdm \
&& rm /usr/lib64/python3.12/EXTERNALLY-MANAGED \
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 100

RUN --mount=type=cache,target=/var/cache/zypp \
zypper --gpg-auto-import-keys \
install --no-confirm --auto-agree-with-licenses \
Mesa-libGL1 \
Mesa-libEGL-devel \
libgthread-2_0-0 \
Expand All @@ -113,9 +119,7 @@ x264 \
x265 \
google-noto-sans-fonts \
google-noto-sans-cjk-fonts \
google-noto-coloremoji-fonts \
&& rm /usr/lib64/python3.12/EXTERNALLY-MANAGED \
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 100
google-noto-coloremoji-fonts

################################################################################
# GCC 13
Expand Down Expand Up @@ -188,10 +192,14 @@ COPY builder-scripts/. /builder-scripts/
# Deps for ComfyUI & custom nodes
RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
-r /builder-scripts/pak3.txt \
&& pip install \
-r /builder-scripts/pak5.txt \
&& pip install \
-r /builder-scripts/pak3.txt

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
-r /builder-scripts/pak5.txt

RUN --mount=type=cache,target=/root/.cache/pip \
pip install \
-r /builder-scripts/pak7.txt \
&& pip list

Expand Down

0 comments on commit e13e9f1

Please sign in to comment.