FROM ubuntu@sha256:f610ab94648195aa356059f5b41d6085c9d4d903c072430cdd1af7bdb646106b # The base image is pinned by digest. The apt packages are not pinned to versions: the Ubuntu archive keeps only the current # security/updates builds, so exact version pins (systemd=255.4-1ubuntu8.17, ca-certificates=20260601~24.04.1 ...) stop resolving # within months ("Version ... was not found") and the image can no longer be built. This image is a disposable fixture, not a # shipped artifact; the smoke checks the behaviour of a user manager, not a package version. RUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ systemd dbus dbus-user-session python3 util-linux ca-certificates && rm -rf /var/lib/apt/lists/* RUN useradd --create-home --uid 10001 fixture && \ mkdir -p /run/systemd/system /run/user/10001 /home/fixture/.config && \ chown fixture:fixture /run/user/10001 /home/fixture/.config && \ chmod 0700 /run/user/10001 /home/fixture /home/fixture/.config # Empty disposable boot-context directory; the fixture starts a real user manager. # No system manager, host bus, host unit directory, or host cgroup is mounted. ENV XDG_RUNTIME_DIR=/run/user/10001 WORKDIR /work