Adding updates to agent

This commit is contained in:
2026-05-10 18:46:48 +02:00
parent e0983d25ae
commit 54c6857252
4 changed files with 22 additions and 8 deletions
+10 -8
View File
@@ -271,17 +271,19 @@ info "Agent0 .env written"
info "Building glitch-tunnel image..."
docker compose build --quiet
info "Starting agent0 container..."
docker compose up -d agent0
info "Starting agent containers..."
docker compose up -d dobby gemma gunnar rind abyssinthia hermes
info "Waiting for agent0 to finish initializing..."
until docker exec agent0 bash -c "! pgrep -x apt-get > /dev/null && ! pgrep -x dpkg > /dev/null" 2>/dev/null; do
sleep 3
AGENT_CONTAINERS=(dobby gemma gunnar rind abyssinthia hermes)
for container in "${AGENT_CONTAINERS[@]}"; do
info "Waiting for ${container} to finish initializing..."
until docker exec "$container" bash -c "! pgrep -x apt-get > /dev/null && ! pgrep -x dpkg > /dev/null" 2>/dev/null; do
sleep 3
done
info "Installing gutasktool inside ${container}..."
docker exec "$container" bash -c "apt-get update -q && apt-get install -y -q python3-pip && python3 -m pip install --break-system-packages -q -e /opt/gutasktool"
done
info "Installing gutasktool inside agent0 container..."
docker exec agent0 bash -c "apt-get update -q && apt-get install -y -q python3-pip && python3 -m pip install --break-system-packages -q -e /a0/usr/gutasktool"
info "Starting tunnel..."
docker compose up -d glitch-tunnel