Skip to content

Commit

Permalink
Fix compose file default base image
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Dec 11, 2023
1 parent 8005a69 commit 2b9d484
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion build/COPY_ROOT/opt/ai-dock/bin/build/layer0/nvidia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ main() {
install_comfyui() {
micromamba run -n comfyui ${PIP_INSTALL} \
torch=="${PYTORCH_VERSION}" \
xformers \
nvidia-ml-py3

micromamba install -n comfyui -c xformers xformers

/opt/ai-dock/bin/update-comfyui.sh
}
Expand Down
10 changes: 9 additions & 1 deletion build/COPY_ROOT_EXTRA/opt/ai-dock/bin/build/layer1/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ function build_extra_start() {
build_extra_get_models \
"/opt/storage/stable_diffusion/models/esrgan" \
"${ESRGAN_MODELS[@]}"

cd /opt/ComfyUI && \
micromamba run -n comfyui -e LD_PRELOAD=libtcmalloc.so python main.py \
--cpu \
--listen 127.0.0.1 \
--port 11404 \
--disable-auto-launch \
--quick-test-for-ci
}

function build_extra_get_nodes() {
Expand All @@ -85,7 +93,7 @@ function build_extra_get_nodes() {
fi
else
printf "Downloading node: %s...\n" "${repo}"
git clone "${repo}" "${path}"
git clone "${repo}" "${path}" --recursive
if [[ -e $requirements ]]; then
micromamba -n comfyui run ${PIP_INSTALL} -r "${requirements}"
fi
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ COPY ./COPY_ROOT/ /
ARG IMAGE_BASE
RUN /opt/ai-dock/bin/build/layer0/init.sh

ENV OPT_SYNC=ComfyUI:serverless:$OPT_SYNC
ENV OPT_SYNC=ComfyUI:serverless
ENV MAMBA_DEFAULT_ENV=comfyui
ENV MAMBA_DEFAULT_RUN="micromamba run -n $MAMBA_DEFAULT_ENV"

Expand Down
2 changes: 1 addition & 1 deletion config/provisioning/default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function provisioning_get_nodes() {
fi
else
printf "Downloading node: %s...\n" "${repo}"
git clone "${repo}" "${path}"
git clone "${repo}" "${path}" --recursive
if [[ -e $requirements ]]; then
micromamba -n comfyui run ${PIP_INSTALL} -r "${requirements}"
fi
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
build:
context: ./build
args:
IMAGE_BASE: ${IMAGE_BASE:-ghcr.io/ai-dock/jupyter-pytorch:latest-cuda}
IMAGE_BASE: ${IMAGE_BASE:-ghcr.io/ai-dock/jupyter-pytorch:2.1.1-py3.10-cuda-11.8.0-base-22.04}
tags:
- "ghcr.io/ai-dock/comfyui:${IMAGE_TAG:-latest-jupyter}"

Expand Down

0 comments on commit 2b9d484

Please sign in to comment.