Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit cd2dc69

Browse files
merge: #3495
3495: fix(ci-base): adds better deps structure + more cypress deps into the… r=johnrwatson a=johnrwatson Installs the remainder of the cypress deps into the ci-base image, all of these should be satisfied locally on dev machines already, so this is a ci-specific fix. Locally I get (using the ci-base off this branch): ``` ci@45ae3dd1610a:/workdir/app/web$ npx cypress run --spec ./cypress/e2e/authentication/login.cy.ts It looks like this is your first time using Cypress: 13.7.1 ✔ Verified Cypress! /home/ci/.cache/Cypress/13.7.1/Cypress Opening Cypress... DevTools listening on ws://127.0.0.1:44311/devtools/browser/00cc15de-63a8-4e8f-b0b7-04b3af451aee Your configFile is invalid: /workdir/app/web/cypress.config.ts It threw an error when required, check the stack trace below: TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /workdir/app/web/cypress.config.ts ``` Which I believe should be a non-issue in CI/a real .nix flake Co-authored-by: John Watson <john@familywatson.co.uk>
2 parents ee467b6 + b151b00 commit cd2dc69

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

component/ci-base/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,30 @@ RUN set -eux; \
3232
containerd.io \
3333
docker-buildx-plugin \
3434
docker-compose-plugin \
35+
; \
36+
rm -rf /var/lib/apt/lists/*
37+
38+
# Install Cypress Dependencies
39+
RUN apt-get update; \
40+
apt-get install -y --no-install-recommends \
3541
xvfb \
3642
libgtk2.0-0 \
3743
libnss3 \
3844
libatk-bridge2.0-0 \
3945
libgtk-3-0 \
4046
libgdm-dev \
47+
libgbm1 \
48+
libwayland-server0 \
4149
libasound2 \
4250
; \
4351
rm -rf /var/lib/apt/lists/*
4452

53+
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
54+
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
55+
&& apt-get update \
56+
&& apt-get install -y google-chrome-stable libxss1 \
57+
--no-install-recommends \
58+
4559
RUN set -eux; \
4660
useradd --create-home --shell /bin/bash --uid "${USER_UID}" ci; \
4761
echo 'ci ALL=(ALL:ALL) NOPASSWD: ALL' >/etc/sudoers.d/ci; \

0 commit comments

Comments
 (0)