Compare commits

12 Commits

Author SHA1 Message Date
derek bfa9948115 Update
Docker Build and Release Upload / build-rocm (push) Has been cancelled
2026-05-05 19:53:38 -07:00
derek e543647d74 Push new fixes
Docker Build and Release Upload / build-rocm (push) Failing after 12m54s
2026-05-03 19:59:53 -07:00
derek d25050ffb7 Push broken changes
Docker Build and Release Upload / build-rocm (push) Failing after 3m54s
2026-04-28 23:08:46 -07:00
derek 9093d7bbd3 Try to move env into the command
Docker Build and Release Upload / build-rocm (push) Failing after 3m59s
2026-04-27 18:38:23 -07:00
derek adb83aa4d1 remove non-existant package
Docker Build and Release Upload / build-rocm (push) Failing after 4m5s
2026-04-27 18:26:50 -07:00
derek eee8462216 Fix version mismatch
Docker Build and Release Upload / build-rocm (push) Failing after 20s
2026-04-27 18:22:47 -07:00
derek 02b05a99f1 reorganize
Docker Build and Release Upload / build-rocm (push) Failing after 4m3s
2026-04-27 18:14:46 -07:00
derek 917b15f35e Fix paths
Docker Build and Release Upload / build-rocm (push) Failing after 3m59s
2026-04-27 18:06:23 -07:00
derek af56bb6603 fix branch version
Docker Build and Release Upload / build-rocm (push) Failing after 4m19s
2026-04-27 17:52:53 -07:00
derek a182452605 fixes
Docker Build and Release Upload / build-rocm (push) Failing after 4m35s
2026-04-27 17:47:03 -07:00
derek 995672804f fixes
Docker Build and Release Upload / build-rocm (push) Failing after 6m16s
2026-04-27 17:39:58 -07:00
derek dccb9cfb4d init test
Docker Build and Release Upload / build-rocm (push) Failing after 5m20s
2026-04-27 16:57:28 -07:00
2 changed files with 159 additions and 78 deletions
+1 -51
View File
@@ -3,35 +3,10 @@ name: Docker Build and Release Upload
on: on:
push: push:
branches: branches:
- main - torchaudio-builder
jobs: jobs:
# Build ComfyUI-Cuda
build-cuda:
runs-on: alpine-linux
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build and push comfyui-cuda
run: |
docker buildx build \
--platform=linux/arm64 \
-t mistox/comfyui-cuda-ampere:latest \
-f comfyui-cuda-dockerfile \
--push \
.
# Build ComfyUI-Rocm # Build ComfyUI-Rocm
build-rocm: build-rocm:
runs-on: alpine-linux runs-on: alpine-linux
@@ -55,29 +30,4 @@ jobs:
-t mistox/comfyui-rocm-ampere:latest \ -t mistox/comfyui-rocm-ampere:latest \
-f comfyui-rocm-dockerfile \ -f comfyui-rocm-dockerfile \
--push \ --push \
.
# Job 3: Uvicorn Build
build-uvicorn:
runs-on: alpine-linux
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build and push uvicorn
run: |
docker buildx build \
--platform=linux/arm64 \
-t mistox/uvicorn-ampere:latest \
-f uvicorn-dockerfile \
--push \
. .
+158 -27
View File
@@ -1,40 +1,171 @@
# Use the official ROCm base image # Use the LTS Ubuntu repo
FROM ubuntu:26.04 FROM ubuntu:26.04 AS reqs
# Set global build variables
# Set environment variables for 7900 XTX (gfx1100)
ENV PIP_BREAK_SYSTEM_PACKAGES=1 ENV PIP_BREAK_SYSTEM_PACKAGES=1
ENV PYTHONUNBUFFERED=1 ENV PYTHONUNBUFFERED=1
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update -y && apt install -y --no-install-recommends \ ENV MAX_JOBS=10
rocm \ # Install libraries
python3-pip \ RUN apt update -y && \
python3-dev \ apt upgrade -y && \
python3-torch-rocm \ apt install -y --no-install-recommends \
python3-torchaudio \ ca-certificates \
wget \
curl \
git \ git \
libgl1 \ gfortran \
libglib2.0-bin \ ninja-build \
g++ \
pkg-config \
xxd \
automake \
libtool \
libegl1-mesa-dev \
texinfo \
bison \
flex \
cmake \
build-essential \
zlib1g-dev \
libncurses5-dev \
libopenblas-dev \
libpthreadpool-dev \
libgoogle-glog-dev \
libgtest-dev \
libbenchmark-dev \
libgdbm-dev \
libnss3-dev \
libssl-dev \
libreadline-dev \
libffi-dev \
libsqlite3-dev \
libelf-dev \
libpciaccess-dev \
protobuf-compiler \
libprotobuf-dev \
libbz2-dev \
liblzma-dev \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Tested Working
# Build python 3.11
FROM reqs AS python
WORKDIR /build/python
RUN wget https://www.python.org/ftp/python/3.11.15/Python-3.11.15.tgz && \
tar -xf Python-3.11.15.tgz && \
cd Python-3.11.15 && \
./configure --enable-optimizations --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" && \
make -j 80 && \
make install && \
ldconfig /usr/local/lib && \
wget https://bootstrap.pypa.io/get-pip.py && \
python3 get-pip.py && \
ln -s /usr/local/bin/pip3 /bin/pip && \
ln -s /usr/local/bin/pip3 /bin/pip3 && \
ln -s /usr/local/bin/python3 /bin/python && \
ln -s /usr/local/bin/python3 /bin/python3.11
# Tested Working
# Build ROCm latest
FROM python AS ROCm
WORKDIR /build/therock
ENV CFLAGS="-Wno-error=discarded-qualifiers -fcommon -w"
ENV CXXFLAGS="-Wno-error=discarded-qualifiers -fcommon -w"
RUN git clone https://github.com/ROCm/TheRock.git && \
cd TheRock && \
git submodule update --init --recursive && \
env INSTALL_PREFIX=/usr/local ./dockerfiles/install_pinned_patchelf.sh && \
pip install -r requirements.txt && \
cmake -S . -B build \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DTHEROCK_AMDGPU_TARGETS="gfx1100" \
-DTHEROCK_DIST_AMDGPU_FAMILIES="gfx1100" \
-DTHEROCK_AMDGPU_DIST_BUNDLE_NAME="gfx1100" \
-DLLVM_HOST_TRIPLE="aarch64-unknown-linux-gnu" \
-DLLVM_DEFAULT_TARGET_TRIPLE="aarch64-unknown-linux-gnu" \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx;libcxxabi" \
-DLLVM_ENABLE_PROJECTS="clang;lld;flang" \
-DCOMPILER_RT_BUILD_SANITIZERS=OFF \
-DCMAKE_INSTALL_PREFIX=./install && \
cmake --build build -- -j${MAX_JOBS}
# Work in progress [ Breaking due to x86 intrinsics not ported to Aarch64 ]
# Build pytorch
FROM ROCm AS pytorch
# Setup Envronment
ENV PYTORCH_ROCM_ARCH=1100
ENV USE_ROCM=1
ENV USE_CUDA=0
ENV USE_AOTRITON=0
ENV USE_SYSTEM_PTHREADPOOL=1
ENV USE_SYSTEM_PROTOC=1
ENV BUILD_CUSTOM_PROTOBUF=OFF
ENV USE_PYTORCH_QNNPACK=OFF
ENV USE_XNNPACK=OFF
ENV USE_ONNX=OFF
ENV USE_QNNPACK=OFF
ENV USE_NNPACK=OFF
ENV USE_KINETO=OFF
ENV USE_OPENMP=OFF
ENV USE_TENSORPIPE=OFF
ENV ROCM_PATH=/usr
ENV DEVICE_LIB_PATH=/usr/lib/llvm-21/lib/clang/21/amdgcn/bitcode
ENV HIPFLAGS="--rocm-device-lib-path=$DEVICE_LIB_PATH"
ENV CMAKE_ARGS="-DCMAKE_HIP_COMPILER_WORKS=1 \
-DCMAKE_CXX_COMPILER_WORKS=1 \
-DCMAKE_C_COMPILER_WORKS=1 \
-DCMAKE_HIP_COMPILER_ROCM_LIB_PATH=$DEVICE_LIB_PATH \
-DCMAKE_HIP_FLAGS=--rocm-device-lib-path=$DEVICE_LIB_PATH \
-DCMAKE_C_COMPILER=/usr/lib/llvm-21/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/lib/llvm-21/bin/clang++ \
-DCMAKE_HIP_COMPILER=/usr/lib/llvm-21/bin/clang++ \
-DPython3_ROOT_DIR=/usr/local \
-DPYTHON_EXECUTABLE=/usr/local/bin/python3.11 \
-DPYTHON_LIBRARY=/usr/local/lib/libpython3.11.so \
-DPYTHON_INCLUDE_DIR=/usr/local/include/python3.11"
# Pull and build pytorch
WORKDIR /build/pytorch
RUN git clone https://github.com/pytorch/pytorch.git && \
cd pytorch && \
git submodule update --init --recursive && \
make triton && \
python tools/amd_build/build_amd.py && \
pip install -r requirements.txt && \
mkdir -p /opt/rocm/bin \
ln -s /usr/bin/hipcc /opt/rocm/bin/hipcc \
ln -s /usr/lib/llvm-21/bin/clang++ /usr/bin/clang++ \
python3 setup.py build && \
python3 setup.py install
# Failing
# Build pytorch-audio
FROM pytorch AS torchaudio
WORKDIR /build/torchaudio
# Build pytorch-vision
FROM torchaudio AS torchvision
WORKDIR /build/torchaudio
RUN git clone https://github.com/pytorch/vision.git
# Build final stripped down image
FROM ubuntu:26.04 as rocm-aarch64
# Copy in rocm, pytorch, torchaudio, torchvision
# Move to a new image | Build ComfyUI
FROM pytorch AS comfyui
WORKDIR /app WORKDIR /app
# Clone ComfyUI
RUN git clone https://github.com/comfyanonymous/ComfyUI.git . RUN git clone https://github.com/comfyanonymous/ComfyUI.git .
RUN pip3 install -r requirements.txt
# Create sub dependancy
RUN grep -vE 'torch|nvidia|cuda|triton|kornia|spandrel' requirements.txt > req_no_torch.txt
# Install non torch dependant requirements
RUN pip3 install --no-cache-dir --break-system-packages -r req_no_torch.txt
# Manually install the sensitive ones with --no-deps
RUN pip3 install --no-deps --break-system-packages torchsde kornia spandrel
# Setup Manager # Setup Manager
WORKDIR /app/custom_nodes WORKDIR /app/custom_nodes
RUN git clone https://github.com/Comfy-Org/ComfyUI-Manager.git RUN git clone https://github.com/Comfy-Org/ComfyUI-Manager.git
# Setup for run
WORKDIR /app WORKDIR /app
EXPOSE 8188 EXPOSE 8188
# Launch
CMD ["python3", "main.py", "--listen", "0.0.0.0"] CMD ["python3", "main.py", "--listen", "0.0.0.0"]