Skip to content

Commit 8e120e4

Browse files
authored
chore: fix Ubuntu 22.04 WebKit on 20.04 host (microsoft#2161)
1 parent 8229ee5 commit 8e120e4

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
@@ -43,6 +43,15 @@ RUN mkdir /ms-playwright && \
4343
# if its arm64 then install the manylinux1_aarch64 pip package
4444
if [ "$(uname -m)" = "aarch64" ]; then pip install /tmp/*manylinux_2_17_aarch64*.whl; fi && \
4545
playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
46+
# Workaround for https://github.com/microsoft/playwright/issues/27313
47+
# While the gstreamer plugin load process can be in-process, it ended up throwing
48+
# an error that it can't have libsoup2 and libsoup3 in the same process because
49+
# libgstwebrtc is linked against libsoup2. So we just remove the plugin.
50+
if [ "$(uname -m)" = "aarch64" ]; then \
51+
rm /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstwebrtc.so; \
52+
else \
53+
rm /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstwebrtc.so; \
54+
fi && \
4655
playwright install --with-deps && rm -rf /var/lib/apt/lists/* && \
4756
rm /tmp/*.whl && \
4857
rm -rf /ms-playwright-agent && \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy