Skip to content

Docker image to restrictive for vitest browser mode #2087

Description

@Arthie

Description

I'm unable to use the official docker image in Gitlab CI to run vitest browser mode tests.
Since the docker image is not intended as a production runtime image can we have a less restrictive version?

CI logs:

$ vpx playwright install --with-deps chromium --no-shell
Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 2, reused 0, downloaded 1, added 0
Packages: +2
++
Progress: resolved 3, reused 0, downloaded 1, added 0
Progress: resolved 3, reused 0, downloaded 2, added 2, done
Installing dependencies...
Switching to root user to install dependencies...
Password: su: Authentication failure
Failed to install browsers
Error: Installation process exited with code: 1

Suggested solution

  • Docker image that has root user access.
  • Docker image that has the deps installed for vitest browser mode / playwright.

Alternative

No response

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Fields

Priority

None yet

Start date

None yet

Target date

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions