From: David Taylor Date: Fri, 18 Aug 2017 16:42:58 +0000 (+0100) Subject: Add google chrome and NPM modules to discourse_test image X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=050a1a6a83744a514ba93e8217fe37a035c1ebe4;p=discourse_docker.git Add google chrome and NPM modules to discourse_test image --- diff --git a/image/discourse_test/Dockerfile b/image/discourse_test/Dockerfile index 8ae00aa..6225309 100644 --- a/image/discourse_test/Dockerfile +++ b/image/discourse_test/Dockerfile @@ -15,6 +15,13 @@ RUN gem update bundler &&\ 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 + +RUN sudo -E -u discourse -H npm install chrome-launcher chrome-remote-interface + WORKDIR /var/www/discourse ENV LANG en_US.UTF-8 ENTRYPOINT sudo -E -u discourse -H ruby script/docker_test.rb