android-emulator: api36-v7 — noVNC defaults: scaled view, autoconnect, reconnect
Some checks failed
ci/woodpecker/push/build-cli Pipeline was successful
ci/woodpecker/push/default Pipeline was canceled

Viktor's screen rendered unscaled on a bare /vnc.html. The entrypoint
now writes /usr/share/novnc/defaults.json (resize=scale, autoconnect,
reconnect with 2s delay, shared) so every load behaves right without URL
params, and viewers self-heal across pod restarts/wakes. Already applied
live to the running pod; this makes it survive the next wake.
This commit is contained in:
Viktor Barzin 2026-06-12 20:18:26 +00:00
parent ff08c685cd
commit 12fd1fcbc9
3 changed files with 14 additions and 3 deletions

View file

@ -4,8 +4,8 @@
# cmdline-tools and the native libraries the emulator needs at runtime.
#
# Rebuild + push (rare — only when tool/library versions bump):
# docker build -t forgejo.viktorbarzin.me/viktor/android-emulator:api36-v6 .
# docker push forgejo.viktorbarzin.me/viktor/android-emulator:api36-v6
# docker build -t forgejo.viktorbarzin.me/viktor/android-emulator:api36-v7 .
# docker push forgejo.viktorbarzin.me/viktor/android-emulator:api36-v7
FROM eclipse-temurin:17-jdk-jammy
ENV DEBIAN_FRONTEND=noninteractive

View file

@ -79,6 +79,17 @@ hw.keyboard=yes
EOF
fi
# --- noVNC defaults: scaled view, autoconnect, self-reconnect ----------------
cat > /usr/share/novnc/defaults.json <<'JSON'
{
"autoconnect": true,
"reconnect": true,
"reconnect_delay": 2000,
"resize": "scale",
"shared": true
}
JSON
# --- virtual display + browser viewing ---------------------------------------
export DISPLAY=:0
Xvfb :0 -screen 0 "$SCREEN_GEOMETRY" -nolisten tcp &

View file

@ -5,6 +5,6 @@ variable "tls_secret_name" {
variable "image_tag" {
type = string
default = "api36-v6"
default = "api36-v7"
description = "android-emulator image tag at forgejo.viktorbarzin.me/viktor/android-emulator. Built + pushed manually from stacks/android-emulator/docker/ (see README.md) — bump this when the image is rebuilt."
}