Skip to content

Commit 048daa5

Browse files
committed
WIP
1 parent 2280c6a commit 048daa5

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG BASE_IMAGE=ubuntu:latest
1+
ARG BASE_IMAGE=ubuntu:24.04
22
FROM ${BASE_IMAGE}
33

44
RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -68,3 +68,8 @@ RUN if [ -n "${RUBY_VERSION}" ]; then \
6868
RUN echo "📦 Pre-installing node@lts..." && \
6969
/home/sentry/.local/bin/mise install "node@lts" && \
7070
/home/sentry/.local/bin/mise use --global "node@lts"
71+
72+
# Install headless Chromium via Playwright (includes all system dependencies).
73+
# Symlink the binary into ~/.local/bin which is already on PATH.
74+
RUN /home/sentry/.local/share/mise/shims/npx playwright install chromium --with-deps
75+
RUN bash -c 'ln -sf /home/sentry/.cache/ms-playwright/chromium-*/chrome-linux/chrome /home/sentry/.local/bin/chromium'

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
options.add_argument("--no-sandbox")
2626
options.add_argument("--disable-gpu")
2727
options.add_argument("--temp-profile")
28-
options.binary = "/usr/bin/chromium" if File.exist?("/usr/bin/chromium")
28+
options.binary = "/home/sentry/.local/bin/chromium" if File.exist?("/home/sentry/.local/bin/chromium")
2929

3030
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
3131
end

0 commit comments

Comments
 (0)