Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion images/chromium-headful/image-chromium/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -e

./start_all.sh
./novnc_startup.sh

python http_server.py > /tmp/server_logs.txt 2>&1 &

Expand Down
21 changes: 0 additions & 21 deletions images/chromium-headful/image-chromium/novnc_startup.sh

This file was deleted.

5 changes: 1 addition & 4 deletions images/chromium-headful/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN_ARGS=(
--mount type=bind,src="$FLAGS_FILE",dst=/chromium/flags,ro
)

# noVNC vs WebRTC port mapping
# WebRTC port mapping
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: NoVNC Port Mapping Issue

Removing the else block for noVNC port mapping means that when ENABLE_WEBRTC is not set, port 8080 is no longer mapped. This makes the container inaccessible via localhost:8080, despite entrypoint.sh still instructing users to open that URL.

Fix in Cursor Fix in Web

if [[ "${ENABLE_WEBRTC:-}" == "true" ]]; then
echo "Running container with WebRTC"
RUN_ARGS+=( -p 8080:8080 )
Expand All @@ -55,9 +55,6 @@ if [[ "${ENABLE_WEBRTC:-}" == "true" ]]; then
RUN_ARGS+=( -e NEKO_WEBRTC_NAT1TO1=127.0.0.1 )
RUN_ARGS+=( -p 56000-56100:56000-56100/udp )
fi
else
echo "Running container with noVNC"
RUN_ARGS+=( -p 8080:6080 )
fi

docker rm -f "$NAME" 2>/dev/null || true
Expand Down
Loading