mirror of
https://github.com/burakgon/OpenScreens.git
synced 2026-12-02 04:29:50 +08:00
The tests so far connect to the server that comes with the project, which shows that the two agree with each other. What a session does with the servers people actually run was not tested anywhere. scripts/compat-lab starts TigerVNC, x11vnc and wayvnc in a container, in twelve setups between them: a VNC password, TLS with a certificate nobody signed, a user name, RSA-AES in its four forms, no sign-in at all, and wayvnc as Raspberry Pi OS configures it. The tests open a session to each and check inside the container what was typed, where the pointer went, what reached the clipboard, that the desktop took the size it was asked for and went back, and how a certificate or key is asked about, refused and noticed to have changed. It needs Docker, so it is run by hand and not by CI.
20 lines
739 B
Docker
20 lines
739 B
Docker
# Real VNC servers for OpenScreens to be tried against. See README.md here.
|
|
FROM debian:trixie-slim
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
tigervnc-standalone-server tigervnc-tools \
|
|
x11vnc xvfb \
|
|
wayvnc sway foot wl-clipboard \
|
|
xterm xdotool xclip x11-utils x11-xserver-utils xfonts-base \
|
|
openssl ca-certificates procps \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Someone to sign in as, for the servers that ask for a user name.
|
|
RUN useradd --create-home --shell /bin/bash demo \
|
|
&& echo 'demo:demo-secret' | chpasswd
|
|
|
|
COPY start.sh /usr/local/bin/start.sh
|
|
RUN chmod +x /usr/local/bin/start.sh
|
|
ENTRYPOINT ["/usr/local/bin/start.sh"]
|