From: Guo Xiang Tan Date: Fri, 15 Dec 2017 04:24:12 +0000 (+0800) Subject: Add ability to run JS tests in chrome headless. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1eb6826319a6e8b63e66ff75e4684af6e897ab44;p=discourse_docker.git Add ability to run JS tests in chrome headless. --- diff --git a/image/discourse_test/Dockerfile b/image/discourse_test/Dockerfile index 4bb81e3..8cdef88 100644 --- a/image/discourse_test/Dockerfile +++ b/image/discourse_test/Dockerfile @@ -13,7 +13,12 @@ RUN gem update bundler --force &&\ sudo -u discourse bundle install --standalone &&\ chown -R discourse /var/run/postgresql -RUN npm install -g eslint babel-eslint +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - &&\ + echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list &&\ + apt-get update &&\ + apt-get install -y google-chrome-stable &&\ + npm install -g eslint babel-eslint &&\ + cd /var/www/discourse && sudo -E -u discourse -H npm install chrome-launcher chrome-remote-interface WORKDIR /var/www/discourse ENV LANG en_US.UTF-8