mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: fix Ubuntu 22.04 WebKit on 20.04 host (#28068)
https://github.com/microsoft/playwright/issues/27313
This commit is contained in:
parent
62b6af3a7f
commit
6d3913f459
@ -40,6 +40,15 @@ RUN mkdir /ms-playwright && \
|
||||
npm i /tmp/playwright-core.tar.gz && \
|
||||
npm exec --no -- playwright-core mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
|
||||
npm exec --no -- playwright-core install --with-deps && rm -rf /var/lib/apt/lists/* && \
|
||||
# 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 && \
|
||||
rm /tmp/playwright-core.tar.gz && \
|
||||
rm -rf /ms-playwright-agent && \
|
||||
rm -rf ~/.npm/ && \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user