Skip to content

Commit a5fca11

Browse files
committed
Eval-server connects to the AI panel
1 parent 8177433 commit a5fca11

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

Dockerfile.local

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ FROM --platform=linux/arm64 node:18-alpine AS eval-server-builder
7070

7171
WORKDIR /workspace
7272

73-
# Clone browser-operator-core to get eval server
74-
RUN apk add --no-cache git
75-
RUN git clone https://github.com/BrowserOperator/browser-operator-core.git
73+
# Copy local browser-operator-core eval server with our modifications
74+
COPY browser-operator-core/eval-server/nodejs /workspace/eval-server
7675

77-
WORKDIR /workspace/browser-operator-core/eval-server/nodejs
76+
WORKDIR /workspace/eval-server
7877

7978
# Install dependencies
8079
RUN npm install
@@ -305,7 +304,7 @@ RUN useradd -m -s /bin/bash kernel
305304
# ============================================================================
306305

307306
# Copy eval server from builder
308-
COPY --from=eval-server-builder /workspace/browser-operator-core/eval-server/nodejs /opt/eval-server
307+
COPY --from=eval-server-builder /workspace/eval-server /opt/eval-server
309308

310309
# Install Node.js in final image for eval server
311310
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
@@ -317,6 +316,6 @@ RUN echo '#!/bin/bash\ncd /opt/eval-server && node examples/with-http-wrapper.js
317316
chmod +x /usr/local/bin/start-eval-server.sh
318317

319318
# Expose ports
320-
EXPOSE 8000 8001 8080
319+
EXPOSE 8000 8001 8080 8081 8082
321320

322321
ENTRYPOINT [ "/wrapper.sh" ]

cloudrun-kernel-wrapper.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ done
9292
if [[ "${ENABLE_WEBRTC:-}" == "true" ]]; then
9393
echo "[cloudrun-kernel] Starting Neko (WebRTC)..."
9494
supervisorctl -c /etc/supervisor/supervisord-cloudrun.conf start neko
95-
echo "[cloudrun-kernel] Waiting for Neko on port 8080..."
96-
while ! nc -z 127.0.0.1 8080 2>/dev/null; do
95+
echo "[cloudrun-kernel] Waiting for Neko on port 8081..."
96+
while ! nc -z 127.0.0.1 8081 2>/dev/null; do
9797
sleep 0.5
9898
done
9999
fi

run-local.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ RUN_ARGS=(
8282
-p 444:10001
8383
-p 8000:8000 \
8484
-p 8001:8001 \
85-
-p 8081:8081
85+
-p 8080:8080 \
86+
-p 8081:8081 \
87+
-p 8082:8082
8688
-e DISPLAY_NUM=1
8789
-e HEIGHT=768
8890
-e WIDTH=1024
@@ -105,12 +107,14 @@ fi
105107

106108
# Run with our additional DevTools port mapping
107109
docker rm -f "$NAME" 2>/dev/null || true
108-
docker run -it "${RUN_ARGS[@]}" "$IMAGE"
110+
docker run -d "${RUN_ARGS[@]}" "$IMAGE"
109111

110112
echo ""
111113
echo "🌐 Extended service should be accessible at:"
112114
echo " WebRTC Client: http://localhost:8000"
113-
echo " Eval Server API: http://localhost:8081"
115+
echo " Eval Server HTTP API: http://localhost:8080"
116+
echo " WebRTC (Neko): http://localhost:8081"
117+
echo " Eval Server WS: ws://localhost:8082"
114118
echo " Chrome DevTools: http://localhost:9222"
115119
echo " Recording API: http://localhost:444"
116120
echo " Enhanced DevTools UI: http://localhost:8001"

supervisor-cloudrun/neko.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[program:neko]
2-
command=/usr/bin/neko serve --server.static /var/www --server.bind 0.0.0.0:8080
2+
command=/usr/bin/neko serve --server.static /var/www --server.bind 0.0.0.0:8081
33
user=kernel
44
autostart=false
55
autorestart=true

0 commit comments

Comments
 (0)