Skip to content

Commit 8dfd701

Browse files
committed
Fix missing .so for playwright e2e
1 parent b070ec1 commit 8dfd701

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.devcontainer/install-deps.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ APT_PACKAGES=(
4242
ca-certificates
4343
curl
4444
gnupg
45+
nodejs
46+
npm
4547
)
4648

4749
if [ "${ARCH}" = "amd64" ]; then
@@ -66,6 +68,10 @@ wget https://github.com/jetkvm/rv1106-system/releases/download/${BUILDKIT_VERSIO
6668
popd
6769
rm -rf "${BUILDKIT_TMPDIR}"
6870

71+
# Playwright Chromium system libraries (libnspr4, libnss3, libgbm, X11/xcb, etc.)
72+
# Needed for `make test_e2e` / `npx playwright test` to launch the bundled headless shell.
73+
sudo env "PATH=$PATH" npm exec --yes playwright@latest install-deps chromium
74+
6975
# Docker CLI
7076
sudo install -m 0755 -d /etc/apt/keyrings
7177
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
@@ -76,4 +82,5 @@ echo \
7682
trixie stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
7783

7884
sudo apt update
79-
sudo apt install docker-ce-cli
85+
sudo apt install -y docker-ce-cli
86+
sudo rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)