Skip to content

Commit

Permalink
removed package
Browse files Browse the repository at this point in the history
  • Loading branch information
the-dusky committed Dec 19, 2024
1 parent e996001 commit 0efa0b5
Show file tree
Hide file tree
Showing 48 changed files with 95 additions and 3,656 deletions.
95 changes: 95 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Builder stage for SSH key
FROM pytorch/pytorch:latest AS start

RUN apt update && apt-get install -y \
git git-lfs rsync nginx wget curl nano ffmpeg libsm6 libxext6 \
cron sudo ssh zstd jq build-essential cmake ninja-build \
gcc g++ openssh-client libx11-dev libxrandr-dev libxinerama-dev \
libxcursor-dev libxi-dev libgl1-mesa-dev libglfw3-dev software-properties-common \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN apt update && add-apt-repository ppa:ubuntu-toolchain-r/test -y \
&& apt install -y gcc-11 g++-11 libstdc++6 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Install newer libstdc++ for both system and conda
RUN cd /tmp && \
wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-12/libstdc++6_12.3.0-1ubuntu1~22.04_amd64.deb && \
dpkg -x libstdc++6_12.3.0-1ubuntu1~22.04_amd64.deb . && \
cp -v usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30 /usr/lib/x86_64-linux-gnu/ && \
cp -v usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30 /opt/conda/lib/ && \
cd /usr/lib/x86_64-linux-gnu && \
ln -sf libstdc++.so.6.0.30 libstdc++.so.6 && \
cd /opt/conda/lib && \
ln -sf libstdc++.so.6.0.30 libstdc++.so.6 && \
rm -rf /tmp/*

FROM start AS middle

ENV ROOT=/workspace
ENV PATH="${ROOT}/.local/bin:${PATH}"
ENV CONFIG_DIR=${ROOT}/config
ENV COMFY_DIR=${ROOT}/ComfyUI

WORKDIR ${ROOT}

ENV CFLAGS="-O2"
ENV CXXFLAGS="-O2"

RUN pip install --upgrade pip && \
pip install --upgrade torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1

RUN git clone https://github.com/comfyanonymous/ComfyUI.git ${COMFY_DIR} && \
cd ${COMFY_DIR} && \
pip install --upgrade pip && \
pip install --upgrade onnxruntime-gpu mmengine opencv-python imgui-bundle && \
pip install -r requirements.txt && \
pip install huggingface_hub[hf_transfer] && \
pip install tqdm

FROM middle AS shared

COPY config/shared ${ROOT}/shared_custom_nodes

RUN find ${ROOT}/shared_custom_nodes -name "requirements.txt" -execdir pip install -r {} \;

FROM shared AS end

COPY config/ ${CONFIG_DIR}/

# Debug: List config files
RUN find ${CONFIG_DIR} -name "config.json"

# Set default config type
ARG CONFIG_TYPE

# Copy type-specific config files
COPY config/${CONFIG_TYPE} ${CONFIG_DIR}/

# Copy init.d script
COPY scripts/comfyui /etc/init.d/comfyui
RUN chmod +x /etc/init.d/comfyui && \
update-rc.d comfyui defaults

# Copy startup script
COPY scripts/start.sh /scripts/start.sh
RUN chmod +x /scripts/start.sh

COPY scripts ${ROOT}/scripts

RUN rm -rf ${ROOT}/scripts/start.sh && rm -rf ${ROOT}/scripts/comfyui


# RUN usermod -aG crontab ubuntu
# Create cron pid directory with correct permissions
RUN mkdir -p /var/run/cron \
&& touch /var/run/cron/crond.pid \
&& chmod 644 /var/run/cron/crond.pid
RUN sed -i 's/touch $PIDFILE/# touch $PIDFILE/g' /etc/init.d/cron

RUN cd ${ROOT} && git-lfs install

# Start services and application
CMD ["/scripts/start.sh"]
89 changes: 0 additions & 89 deletions docker/Dockerfile-old

This file was deleted.

10 changes: 0 additions & 10 deletions docker/config/tester/config.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
{
"nodes": [
{
"name": "ComfyUI-Manager",
"url": "https://github.com/ltdrdata/ComfyUI-Manager.git",
"requirements": true
}
],
"models": [
{
"name": "juggernaut_reborn-inpainting.safetensors",
"url": "https://edenartlab-lfs.s3.amazonaws.com/comfyui/models2/checkpoints/juggernaut_reborn-inpainting.safetensors",
"path": "models/checkpoints/"
}
]
}
5 changes: 0 additions & 5 deletions docker/config/video/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"comfy_version": "915fdb57454c094391d830cefb4ffdd24ed8088c",
"nodes": [
{
"name": "ComfyUI-Manager",
"url": "https://github.com/ltdrdata/ComfyUI-Manager.git",
"requirements": true
},
{
"name": "eden_comfy_pipelines",
"url": "https://github.com/edenartlab/eden_comfy_pipelines.git",
Expand Down
9 changes: 0 additions & 9 deletions packages/components/node_modules/chalk/license

This file was deleted.

83 changes: 0 additions & 83 deletions packages/components/node_modules/chalk/package.json

This file was deleted.

Loading

0 comments on commit 0efa0b5

Please sign in to comment.