File tree Expand file tree Collapse file tree 4 files changed +15
-12
lines changed Expand file tree Collapse file tree 4 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,10 @@ FROM --platform=linux/arm64 node:18-alpine AS eval-server-builder
7070
7171WORKDIR /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
8079RUN 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
311310RUN 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
322321ENTRYPOINT [ "/wrapper.sh" ]
Original file line number Diff line number Diff line change 9292if [[ " ${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
9999fi
Original file line number Diff line number Diff 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
105107
106108# Run with our additional DevTools port mapping
107109docker rm -f " $NAME " 2> /dev/null || true
108- docker run -it " ${RUN_ARGS[@]} " " $IMAGE "
110+ docker run -d " ${RUN_ARGS[@]} " " $IMAGE "
109111
110112echo " "
111113echo " 🌐 Extended service should be accessible at:"
112114echo " 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"
114118echo " Chrome DevTools: http://localhost:9222"
115119echo " Recording API: http://localhost:444"
116120echo " Enhanced DevTools UI: http://localhost:8001"
Original file line number Diff line number Diff line change 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
33user=kernel
44autostart=false
55autorestart=true
You can’t perform that action at this time.
0 commit comments