@kritchoff/agent-browser 0.9.20 → 0.9.21
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.2
|
|
7
7
|
platform: linux/amd64
|
|
8
8
|
privileged: true # Required for KVM
|
|
9
9
|
restart: always # Auto-restart on crash
|
|
@@ -30,7 +30,7 @@ services:
|
|
|
30
30
|
# Agent Browser Service (The "Brain")
|
|
31
31
|
# ---------------------------------------------------------------------------
|
|
32
32
|
agent-service:
|
|
33
|
-
image: kritchoff/agent-daemon:v1.0.
|
|
33
|
+
image: kritchoff/agent-daemon:v1.0.2
|
|
34
34
|
platform: linux/amd64
|
|
35
35
|
restart: always
|
|
36
36
|
depends_on:
|
package/package.json
CHANGED
|
@@ -10,7 +10,14 @@ echo "[Agent] Starting Agent Browser Service"
|
|
|
10
10
|
echo "[Agent] Resolving android-service IP..."
|
|
11
11
|
ANDROID_IP=""
|
|
12
12
|
until [ -n "$ANDROID_IP" ]; do
|
|
13
|
-
|
|
13
|
+
# 1. Try /etc/hosts (Fastest, reliable with Docker links)
|
|
14
|
+
ANDROID_IP=$(grep "android-service" /etc/hosts | awk '{print $1}' | head -n 1)
|
|
15
|
+
|
|
16
|
+
# 2. Fallback to DNS lookup
|
|
17
|
+
if [ -z "$ANDROID_IP" ]; then
|
|
18
|
+
ANDROID_IP=$(node -e 'require("dns").lookup("android-service", (err, addr) => { if(!err) console.log(addr) })')
|
|
19
|
+
fi
|
|
20
|
+
|
|
14
21
|
if [ -z "$ANDROID_IP" ]; then
|
|
15
22
|
echo "[Agent] Waiting for DNS resolution..."
|
|
16
23
|
sleep 2
|