mirror of
https://github.com/trycua/computer.git
synced 2026-01-25 23:08:48 -06:00
chore(qemu): remove unnecessary comments
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user