From c59aa520df151076adab4f23b42a4e6fd49caf5e Mon Sep 17 00:00:00 2001 From: "synacktra.work@gmail.com" Date: Mon, 10 Nov 2025 14:32:56 +0530 Subject: [PATCH] chore(qemu): remove unnecessary comments --- libs/qemu/Dockerfile | 9 --------- libs/qemu/src/entry.sh | 8 ++------ 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/libs/qemu/Dockerfile b/libs/qemu/Dockerfile index b40214b7..e0c4b304 100644 --- a/libs/qemu/Dockerfile +++ b/libs/qemu/Dockerfile @@ -1,12 +1,3 @@ -# CUA Windows Container Dockerfile -# -# Uses windowsarena/windows-local:latest instead of windowsarena/winarena-base:latest -# to avoid unnecessary bloat from ML dependencies: -# - Removes Python 3.9 and ML client dependencies (easyocr, onnxruntime, etc.) -# - Removes CUDA 11.8 libraries -# - Removes ML model weights (GroundingDINO, OmniParser) -# This results in a significantly smaller image focused purely on QEMU/Windows with CUA computer-server. - # Define build argument for deployment mode (default is dev, can also be azure) ARG DEPLOY_MODE="dev" diff --git a/libs/qemu/src/entry.sh b/libs/qemu/src/entry.sh index 4fc74a1c..9f9eb19a 100644 --- a/libs/qemu/src/entry.sh +++ b/libs/qemu/src/entry.sh @@ -16,17 +16,14 @@ echo "Live stream accessible at localhost:8006" echo "Waiting for Windows to boot and CUA computer-server to start..." while true; do - # Send a GET request to check if server is ready + # Check if server is ready response=$(curl --write-out '%{http_code}' --silent --output /dev/null 20.20.20.21:5000/status) - # If the response code is 200 (HTTP OK), break the loop if [ "${response:-0}" -eq 200 ]; then break fi echo "Waiting for CUA computer-server to be ready. This might take a while..." - - # Wait for a while before the next attempt sleep 5 done @@ -39,8 +36,7 @@ socat TCP-LISTEN:5000,fork,reuseaddr TCP:20.20.20.21:5000 & echo "Computer server accessible at localhost:5000" # Detect initial setup by presence of /custom.iso (setup ISO mount) -if [ ! -f "/custom.iso" ]; then - # Keep container alive +if [ ! -f "/custom.iso" ]; then # Keep container alive echo "Container running. Press Ctrl+C to stop." tail -f /dev/null fi