From 6502ffcbe08390059ba4974b7d4c74453cfe90fe Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 4 Nov 2025 23:46:13 +0000 Subject: [PATCH] Disable ryuk reaper in the playwright container ... thus making it possible to use `testcontainers` inside unprivileged containers. --- packages/element-web-playwright-common/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/element-web-playwright-common/Dockerfile b/packages/element-web-playwright-common/Dockerfile index c8bf12e503..e6ac702766 100644 --- a/packages/element-web-playwright-common/Dockerfile +++ b/packages/element-web-playwright-common/Dockerfile @@ -6,4 +6,8 @@ WORKDIR /work # fonts-dejavu is needed for the same RTL rendering as on CI RUN apt-get update && apt-get -y install docker.io fonts-dejavu +# Disable the ryuk resource reaper, because it doesn't work in environments +# that disallow starting privileged containers (such as rootless containers) +ENV TESTCONTAINERS_RYUK_DISABLED=true + ENTRYPOINT ["npx", "playwright", "test", "--update-snapshots", "--reporter", "line"]