Skip to content

Commit

Permalink
Add steps to install playwright in .devcontainer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-to committed Jun 10, 2024
1 parent fa17bcd commit 40a49d3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 19 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,25 @@ RUN apt-get update && \
locales-all \
lsof \
tmux \
vim && \
vim \
# Playwright dependencies
# This is the qquivalent of `sudo yarn playwright install-deps`. We add these manually
# since the mesop-dev user does not have sudo.
libnss3 \
libnspr4 \
libdbus-1-3 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libdrm2 \
libxkbcommon0 \
libatspi2.0-0 \
libxcomposite1 \
libxdamage1 \
libxfixes3 \
libxrandr2 \
libgbm1 \
libasound2 && \
# Clean local repository of package files since they won't be needed anymore.
# Make sure this line is called after all apt-get update/install commands have
# run.
Expand Down
3 changes: 3 additions & 0 deletions scripts/devcontainer_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ pip install -r build_defs/requirements_lock.txt
# Precommit support for Git (installs into venv)
pip install pre-commit==3.7.1
pre-commit install

# Install playwright
yarn playwright install

0 comments on commit 40a49d3

Please sign in to comment.