Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

chore(qemu): remove unnecessary comments

[email protected]c59aa520df15
diff --git a/libs/qemu/Dockerfile b/libs/qemu/Dockerfile
index b40214b770..e0c4b30439 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 4fc74a1c2c..9f9eb19a0b 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