• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

273
Views
Chrome no capturado al usar karma con Docker

Estoy tratando de ejecutar algunas pruebas de karma usando Chrome en un contenedor Docker. Mi Dockerfile se parece a:

 FROM node:6-alpine RUN apk update \ && apk add --update alpine-sdk \ && apk add chromium \ && npm install -g @angular/cli@1.0.0 \ && ng set --global packageManager=yarn \ && apk del alpine-sdk \ && rm -rf /tmp/* /var/cache/apk/* *.tar.gz ~/.npm \ && npm cache clear \ && sed -i -e "s/bin\/ash/bin\/sh/" /etc/passwd ENV CHROME_BIN=/usr/local/bin/my-chrome-build

Cuando ejecuto ng test en este contenedor (habiendo montado un proyecto que sé que funciona), obtengo:

 $ ng test -sr && yarn run test:server 04 04 2017 10:32:27.896:INFO [karma]: Karma v1.5.0 server started at http://0.0.0.0:9876/ 04 04 2017 10:32:27.915:INFO [launcher]: Launching browser Chrome with unlimited concurrency 04 04 2017 10:32:27.985:INFO [launcher]: Starting browser Chrome 04 04 2017 10:33:28.047:WARN [launcher]: Chrome have not captured in 60000 ms, killing. 04 04 2017 10:33:30.053:WARN [launcher]: Chrome was not killed in 2000 ms, sending SIGKILL. 04 04 2017 10:33:32.056:WARN [launcher]: Chrome was not killed by SIGKILL in 2000 ms, continuing. error Command failed with exit code 1.

Realmente no sé cómo depurar esto, ¿alguna idea de qué podría estar mal o cómo puedo obtener más información?

about 3 years ago · Santiago Trujillo
1 answers
Answer question

0

Estoy usando Chrome sin cabeza inestable en un contenedor Docker con la siguiente configuración del navegador Karma (extracto):

 ... browsers: ['Chrome_in_Docker'], customLaunchers: { Chrome_in_Docker: { base: 'ChromeHeadless', flags: [ '--disable-web-security', '--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage', '--remote-debugging-port=9223', '--headless', '--disable-gpu' ] } }, ...
about 3 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error