Skip to content

Commit d6f6448

Browse files
authored
chore: fix Ubuntu 22.04 WebKit on 20.04 host (#1423)
1 parent 5d9f76f commit d6f6448

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

utils/docker/Dockerfile.jammy

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,13 @@ RUN cd /tmp/pw-java && \
5454
mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI \
5555
-D exec.args="mark-docker-image '${DOCKER_IMAGE_NAME_TEMPLATE}'" -f playwright/pom.xml --no-transfer-progress && \
5656
rm -rf /tmp/pw-java && \
57+
# Workaround for https://github.com/microsoft/playwright/issues/27313
58+
# While the gstreamer plugin load process can be in-process, it ended up throwing
59+
# an error that it can't have libsoup2 and libsoup3 in the same process because
60+
# libgstwebrtc is linked against libsoup2. So we just remove the plugin.
61+
if [ "$(uname -m)" = "aarch64" ]; then \
62+
rm /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstwebrtc.so; \
63+
else \
64+
rm /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstwebrtc.so; \
65+
fi && \
5766
chmod -R 777 $PLAYWRIGHT_BROWSERS_PATH

0 commit comments

Comments
 (0)