@kritchoff/agent-browser 0.9.43 → 0.9.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docker-compose.sdk.yml
CHANGED
|
@@ -3,7 +3,7 @@ services:
|
|
|
3
3
|
# Android Emulator Service (The "Body")
|
|
4
4
|
# ---------------------------------------------------------------------------
|
|
5
5
|
android-service:
|
|
6
|
-
image: kritchoff/agent-android:v1.0.
|
|
6
|
+
image: kritchoff/agent-android:v1.0.8
|
|
7
7
|
platform: linux/amd64
|
|
8
8
|
privileged: true # Required for KVM
|
|
9
9
|
restart: always # Auto-restart on crash
|
|
@@ -25,12 +25,14 @@ services:
|
|
|
25
25
|
timeout: 5s
|
|
26
26
|
retries: 60
|
|
27
27
|
start_period: 60s
|
|
28
|
+
networks:
|
|
29
|
+
- agent-network
|
|
28
30
|
|
|
29
31
|
# ---------------------------------------------------------------------------
|
|
30
32
|
# Agent Browser Service (The "Brain")
|
|
31
33
|
# ---------------------------------------------------------------------------
|
|
32
34
|
agent-service:
|
|
33
|
-
image: kritchoff/agent-daemon:v1.0.
|
|
35
|
+
image: kritchoff/agent-daemon:v1.0.8
|
|
34
36
|
platform: linux/amd64
|
|
35
37
|
restart: always
|
|
36
38
|
depends_on:
|
|
@@ -40,8 +42,12 @@ services:
|
|
|
40
42
|
environment:
|
|
41
43
|
- AGENT_DEBUG=false
|
|
42
44
|
- AGENT_BROWSER_SOCKET_DIR=/tmp/agent-browser
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
+
networks:
|
|
46
|
+
- agent-network
|
|
45
47
|
|
|
46
48
|
volumes:
|
|
47
49
|
avd-data:
|
|
50
|
+
|
|
51
|
+
networks:
|
|
52
|
+
agent-network:
|
|
53
|
+
driver: bridge
|
package/package.json
CHANGED
|
@@ -6,19 +6,18 @@ mkdir -p $AGENT_BROWSER_SOCKET_DIR
|
|
|
6
6
|
|
|
7
7
|
echo "[Agent] Starting Agent Browser Service"
|
|
8
8
|
|
|
9
|
-
# Resolve IP of android-service
|
|
10
|
-
echo "[Agent] Resolving android-service IP..."
|
|
9
|
+
# Resolve IP of android-service via Docker's built-in DNS
|
|
10
|
+
echo "[Agent] Resolving android-service IP via DNS..."
|
|
11
11
|
ANDROID_IP=""
|
|
12
12
|
until [ -n "$ANDROID_IP" ]; do
|
|
13
|
-
|
|
14
|
-
ANDROID_IP=$(grep "android-service" /etc/hosts | awk '{print $1}' | head -n 1)
|
|
13
|
+
ANDROID_IP=$(node -e 'require("dns").lookup("android-service", (err, addr) => { if(!err) console.log(addr) })' 2>/dev/null)
|
|
15
14
|
|
|
16
15
|
if [ -z "$ANDROID_IP" ]; then
|
|
17
|
-
echo "[Agent] Waiting for DNS resolution..."
|
|
16
|
+
echo "[Agent] Waiting for Docker DNS resolution of 'android-service'..."
|
|
18
17
|
sleep 2
|
|
19
18
|
fi
|
|
20
19
|
done
|
|
21
|
-
echo "[Agent] Android IP: $ANDROID_IP"
|
|
20
|
+
echo "[Agent] Resolved Android IP: $ANDROID_IP"
|
|
22
21
|
|
|
23
22
|
# Wait for CDP Bridge (Port 9224)
|
|
24
23
|
echo "[Agent] Waiting for Android CDP at http://$ANDROID_IP:9224..."
|