# Test box for openhop on Linux: Ubuntu 24.04 with systemd (so `systemctl --user` works), a virtual # screen (Xvfb) for window screenshots, and the packages a normal desktop has. WARP and openhop are NOT # preinstalled: install.sh must do that, like on a real machine. FROM ubuntu:24.04 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y --no-install-recommends \ systemd systemd-sysv dbus dbus-user-session sudo ca-certificates curl gnupg lsb-release \ xvfb xauth x11-utils imagemagick fonts-dejavu-core openbox \ iproute2 procps less nano file \ && apt-get clean && rm -rf /var/lib/apt/lists/* RUN useradd -m -s /bin/bash -G sudo tester && echo "tester:tester" | chpasswd \ && echo "tester ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/tester && chmod 440 /etc/sudoers.d/tester # keep the user's systemd manager running without a login session RUN mkdir -p /var/lib/systemd/linger && touch /var/lib/systemd/linger/tester STOPSIGNAL SIGRTMIN+3 CMD ["/sbin/init"]