From 8e120e4558a0dfae1157a9f8a20868d3976cd8de Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Wed, 15 Nov 2023 19:53:42 +0100 Subject: [PATCH] chore: fix Ubuntu 22.04 WebKit on 20.04 host (#2161) --- utils/docker/Dockerfile.jammy | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/utils/docker/Dockerfile.jammy b/utils/docker/Dockerfile.jammy index 8e6498381..273187d6e 100644 --- a/utils/docker/Dockerfile.jammy +++ b/utils/docker/Dockerfile.jammy @@ -43,6 +43,15 @@ RUN mkdir /ms-playwright && \ # if its arm64 then install the manylinux1_aarch64 pip package if [ "$(uname -m)" = "aarch64" ]; then pip install /tmp/*manylinux_2_17_aarch64*.whl; fi && \ playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \ + # Workaround for https://github.com/microsoft/playwright/issues/27313 + # While the gstreamer plugin load process can be in-process, it ended up throwing + # an error that it can't have libsoup2 and libsoup3 in the same process because + # libgstwebrtc is linked against libsoup2. So we just remove the plugin. + if [ "$(uname -m)" = "aarch64" ]; then \ + rm /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstwebrtc.so; \ + else \ + rm /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstwebrtc.so; \ + fi && \ playwright install --with-deps && rm -rf /var/lib/apt/lists/* && \ rm /tmp/*.whl && \ rm -rf /ms-playwright-agent && \