chore(qemu): remove unnecessary comments

This commit is contained in:
synacktra.work@gmail.com
2025-11-10 14:32:56 +05:30
parent c694c6a2e9
commit c59aa520df
2 changed files with 2 additions and 15 deletions

View File

@@ -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"

View File

@@ -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