From 1c6acbaf1f4fc9881ba180e48d58ba8f4f598805 Mon Sep 17 00:00:00 2001 From: RedsAnalysis Date: Sat, 15 Mar 2025 02:42:10 -0400 Subject: [PATCH] Updated docker-build.sh to include error handling for venv cp and in docker-compose.yml added image name tag --- docker-build.sh | 4 ++-- docker-compose.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-build.sh b/docker-build.sh index 9c2b6b8f..992d5a11 100644 --- a/docker-build.sh +++ b/docker-build.sh @@ -9,10 +9,10 @@ fi # Step 1: Build and start the container without mounting the venv volume echo "Building and starting the container to initialize the virtual environment..." -docker-compose up --build -d +COMPOSE_BAKE=true docker-compose up --build -d # Wait for the container logs to indicate it's ready (looking for the custom message) -container_name="comfyui-red-docker" +container_name="comfyui-red-container" while ! docker logs "$container_name" 2>&1 | grep -q "Server started and ready to accept requests"; do echo "Waiting for the container to be fully started..." sleep 20 diff --git a/docker-compose.yml b/docker-compose.yml index 53813303..a55310ed 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,8 @@ services: build: context: . dockerfile: Dockerfile - container_name: comfyui-red-docker + image: comfyui-red-image + container_name: comfyui-red-container ports: - "8188:8188" # Expose the backend API or server volumes: