-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chrome-launcher does not work on docker ubuntu (even with xvfb-run) #83
Comments
Note: replacing the code in karma that kills all launcher logs with code that sends launcher logs to stderr/stdout indicates to me that the When I run the |
@jadekler we had a working setup using As yet I'm unclear what changed to cause things to stop working; could I guess be any number of:
I note your work in https://github.com/jadekler/git-karma-on-ubuntu-container, but again, even with The interesting thing is that launching Chrome via an interactive docker run, everything is fine ( Posting here in case there is any light you can help shed on the situation? |
Replying to self... I've still not managed to track down what's going wrong here... despite resorting to But I have found a (temporary) solution, an alternative to the approach @jadekler describes above (which we needed because @jadekler's solution did not work for us) This solution works for us with It involves defining a custom launcher and taking advantage of Chrome's new // karma.conf.js
// ...
browsers: ['OurChrome'],
customLaunchers: {
OurChrome: {
base: 'Chrome',
flags: ['--headless', '--disable-gpu', '--remote-debugging-port=9222']
}
},
// ... At this point I also note karma-runner/karma#2489 @dignifiedquire is it worth trying to debug further with the |
A working version of a basic karma / gitlab config can be seen here (at least I was able to run it via |
@weblogixx you don't need to run with privileged; you can instead run with the following
(which is a string quoted version of https://github.com/jessfraz/dotfiles/blob/master/etc/docker/seccomp/chrome.json) |
@myitcv Apologies for not seeing sooner. We also went with the custom script that chrome launcher runs. |
Could anyone please explain why was this ticket closed? With the latest |
Also experiencing this problem |
Gitlab CI runner in Debian Stretch container runner:
|
The problem: Running karma + karma-chrome-launcher on ubuntu docker container does not work
Steps tried:
npm test
withxvfb-run
Anyone have other ideas?
Example tiny project with docker container. This repo contains a replicable error:
The text was updated successfully, but these errors were encountered: