update manage vm script

This commit is contained in:
Alexey Taymano
2025-09-09 20:36:23 +00:00
parent 8e0f0ecb0f
commit 8186ddef43
2 changed files with 47 additions and 29 deletions

View File

@@ -12,7 +12,7 @@ create_vm() {
# Wait for the VM to start up
while true; do
response=$(curl --write-out '%{http_code}' --silent --output /dev/null localhost:5000/probe)
response=$(docker exec -it omni-windows bash -c "curl --write-out '%{http_code}' --silent --output /dev/null localhost:5000/probe")
if [ $response -eq 200 ]; then
break
fi
@@ -27,7 +27,7 @@ start_vm() {
echo "Starting VM..."
docker compose -f ../compose.yml start
while true; do
response=$(curl --write-out '%{http_code}' --silent --output /dev/null localhost:5000/probe)
response=$(docker exec -it omni-windows bash -c "curl --write-out '%{http_code}' --silent --output /dev/null localhost:5000/probe")
if [ $response -eq 200 ]; then
break
fi