Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

257
Visualizações
karma phantomjs not capturing in docker container

I'm having trouble getting phantomjs to capture karma in an alpine docker container. I'm using node 6.10.2. I've installed phantomjs alpine from here. I'm using the following versions:

"karma": "^1.6.0",
"karma-coverage": "^1.1.1",
"karma-mocha": "^1.0.1",
"karma-mocha-reporter": "^2.0.0",
"karma-phantomjs-launcher": "^1.0.4",
"karma-webpack": "^2.0.3",

Inside my container when I run my tests I see the following output. (timestamps removed)

INFO [karma]: Karma v1.6.0 server started at http://0.0.0.0:9876/
INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
INFO [launcher]: Starting browser PhantomJS
DEBUG [temp-dir]: Creating temp dir at /workspace/karma-1981971
DEBUG [launcher]: /usr/bin/phantomjs /workspace/karma-1981971/capture.js
WARN [launcher]: PhantomJS have not captured in 60000 ms, killing.

It then fails 2 times before exiting.

When I look at the contents of the tmp file capture.js it shows it is trying to open localhost:9876/?id=18274999 and inside my container I try to wget http://0.0.0.0:9876/ which does indeed succeed.

So I am very confused why PhantomJs fails to capture when I can indeed connect from within my container.

How should I go about debugging this? Any suggestions are greatly appreciated

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I'm having the same problem in my build. I think using node 6.10.2 is the issue because I'm not seeing it happen on node 6.9.4

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda