mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Merge pull request #5309 from luisramos0/better-karma
Make dockerfile install node and adapt karma browser config to work inside a docker container
This commit is contained in:
@@ -27,6 +27,9 @@ RUN sh -c "echo 'deb https://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main'
|
||||
apt-get update && \
|
||||
apt-get install -yqq --no-install-recommends postgresql-client-9.5 libpq-dev
|
||||
|
||||
# Install node
|
||||
RUN apt-get install -y nodejs
|
||||
|
||||
# Install Chrome
|
||||
RUN wget --quiet -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
|
||||
sh -c "echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list.d/google-chrome.list" && \
|
||||
|
||||
@@ -41,8 +41,21 @@ module.exports = function(config) {
|
||||
},
|
||||
|
||||
autoWatch: true,
|
||||
|
||||
browsers: ['ChromeHeadless'],
|
||||
browsers: ['CustomHeadlessChrome'],
|
||||
customLaunchers: {
|
||||
CustomHeadlessChrome: {
|
||||
base: 'ChromeHeadless',
|
||||
flags: [
|
||||
'--no-sandbox',
|
||||
'--remote-debugging-port=9222',
|
||||
'--enable-logging',
|
||||
'--disable-background-timer-throttling',
|
||||
'--disable-renderer-backgrounding',
|
||||
'--proxy-bypass-list=*',
|
||||
'--proxy-server=\'direct://\''
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
junitReporter: {
|
||||
outputFile: 'log/testacular-unit.xml',
|
||||
|
||||
Reference in New Issue
Block a user