summaryrefslogtreecommitdiff
path: root/config/karma.config.js
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-06-14 03:00:29 -0500
committerMike Greiling <mike@pixelcog.com>2017-06-14 04:07:21 -0500
commitd70be8f83c307869d634ab30d245d996f780c9fd (patch)
tree3a814275d32321da75a7cd6dc9529396b0413e7c /config/karma.config.js
parent375770316567e479c9e0296d1dd76adeda830224 (diff)
downloadgitlab-ce-d70be8f83c307869d634ab30d245d996f780c9fd.tar.gz
run chrome with --no-sandbox flag to get around docker privilege limitations
Diffstat (limited to 'config/karma.config.js')
-rw-r--r--config/karma.config.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/config/karma.config.js b/config/karma.config.js
index cfb0a0cb101..ecbd7d4e3e8 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -21,11 +21,13 @@ module.exports = function(config) {
var karmaConfig = {
basePath: ROOT_PATH,
- browsers: ['ChromeDebug'],
+ browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
- ChromeDebug: {
+ ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
- flags: ['--enable-logging', '--v=1'],
+ // chrome cannot run in sandboxed mode inside a docker container unless it is run with
+ // escalated kernel privileges: docker run --cap-add=CAP_SYS_ADMIN
+ flags: ['--no-sandbox'],
displayName: 'Chrome'
}
},
@@ -40,7 +42,6 @@ module.exports = function(config) {
reporters: [progressReporter],
webpack: webpackConfig,
webpackMiddleware: { stats: 'errors-only' },
- logLevel: config.LOG_DEBUG,
};
if (process.env.BABEL_ENV === 'coverage' || process.env.NODE_ENV === 'coverage') {