teracyhq / docker-files

Teracy docker-files project to build common Docker images
https://hub.docker.com/r/teracy/
MIT License
92 stars 55 forks source link

Chrome_no_sandbox not registered in pipeline #80

Open OfficialVreesie opened 1 year ago

OfficialVreesie commented 1 year ago

In my GitLab pipeline, I have setup the test job as follows:

test:
  image: teracy/angular-cli:latest
  stage: testing
  script:    
    - npm install
    - ng test --browsers Chrome_no_sandbox --watch=false --code-coverage
  cache:
    key:
      files:
        - package-lock.jsonnode
    paths:
      - node_modules
    policy: pull
  only:
    - tags

Now when I run this pipeline, The ng test command fails with the output:

$ ng test --browsers Chrome_no_sandbox --watch=false --code-coverage
Your global Angular CLI version (15.2.4) is greater than your local version (15.1.6). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
- Generating browser application bundles (phase: setup)...
✔ Browser application bundle generation complete.
26 03 2023 13:17:18.838:INFO [karma-server]: Karma v6.4.1 server started at http://localhost:9876/
26 03 2023 13:17:18.841:INFO [launcher]: Launching browsers Chrome_no_sandbox with concurrency unlimited
26 03 2023 13:17:18.842:ERROR [launcher]: Cannot load browser "Chrome_no_sandbox": it is not registered! Perhaps you are missing some plugin?
26 03 2023 13:17:18.842:ERROR [karma-server]: Error: Found 1 load error
    at Server.<anonymous> (/builds/oCf3nwxa/0/[MASKED]/web-app/node_modules/karma/lib/server.js:243:26)
    at Object.onceWrapper (events.js:519:28)
    at Server.emit (events.js:412:35)
    at emitListeningNT (net.js:1365:10)
    at processTicksAndRejections (internal/process/task_queues.js:[81](https://gitlab.argoplan.nl/clients/ru6gp1zjn9/argoplan/web-app/-/jobs/596#L81):21)
✔ Browser application bundle generation complete.
✔ Browser application bundle generation complete.
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: command terminated with exit code 1

Why does it say that my "Chrome_no_sandbox" is not registered?